tags:

views:

26

answers:

1

When looking at the MBean for my application in the MBeans tab in JConsole there are submenus for 'Attributes' and 'Operations'. If these tree structures are expanded to their maximum extent and then one of the operations is clicked on, the panel on the right presents three sections: Operation invocation, MBeanOperationInfo and Descriptor. My question relates to the 2nd.

How can you populate the MBeanOperationalInfo? I have tried adding standard javadoc to the MBean interface but that does not work. It would be really useful to be able to document the parameters - especially as their names decay to p1,p2,...

+2  A: 

Your MBean must be a DynamicMBean and implement the method getMBeanInfo(). This also works for Open MBean and Model MBean.

There is an example here: http://docs.sun.com/app/docs/doc/816-7609/6mdjrf83d?a=view

ewernli