For a Java App working with JMX I am able to register my custom MBeans, they are available to be used through either JConsole or VisualVM.
Through Spring, with a set of annotations available through the Framework itself, is possible add descriptions for the Operations and Attributes to be shown through JConsole.
How accomplish the same goal through plain Java? (Spring is not involved) here. I already did do a research in StackOverflow and I found some third party solutions, such as:
- How to add description to JMX MXBean that refers to JMX Annotations
- How to add description for MBean method to see it in jmx-console of JBOSS that refers to Adding descriptions to JMX beans using an annotation wrapper
but seems there is no a direct approach by Java itself.
Is it possible? How?