I found this topic: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=46797
This is quite old, so I hope that there is now a way to do it with Java5 annotations.
According to the above post I must either make it a DynamicMBean and/or user XDoclet annotations to annotate and set it up.
Is this still the case, or is there a way to do it using the newer annotations?
I'm just posting in reply to this because I'd like to do exactly the same thing. I want to add some parameters and comments to be exposed via the JMX-Console.
I've seen mention of having to expose the bean as an XMBean using an xml descriptor? Is this the only way to add comments or can annotations be used as well?
Has anyone got any further info on this one? Like others, I have searched high and low for a solution to this but cant seem to find one, there are references to a @Pname annotation in some articles but i cant find any class to implement the annotation - it would be really helpful to be able to provide some descriptions for fields and methods etc for JMX interfaces.