Please review draft JEP: JMX Specific Annotations for Registration of Managed Resources

Jaroslav Bachorik jaroslav.bachorik at oracle.com
Tue Mar 3 16:27:52 UTC 2015


Hi all,

Please review this draft JEP for JMX Specific Annotations for 
Registration of Managed Resources:

      https://bugs.openjdk.java.net/browse/JDK-8044507

Background:
Current mechanism of defining an MBean requires to provide an MBean 
interface and its implementation. The interface and the implementation 
must conform to the strict naming and visibility rules in order for the 
introspection to be able to bind them.

At least the same level of verbosity is required when adding an 
MBeanInfo to generate MBean metadata.

All this leads to a rather verbose code containing a lot of repeating 
boilerplate parts even for the most simple MBean registrations.

This JEP proposes to add a set of annotations for registration and 
configuration of manageable resources (in other word 'MBeans'). These 
annotations will be used to generate all the metadata necessary for a 
resources to be accepted by the current JMX system.

Thanks,

-JB-


More information about the serviceability-dev mailing list