JMX is Ready for NetBeans 6
By jeanfrancoisdenise on Feb 05, 2007
an alpha release of the JMX netbeans module is now available from the NetBeans Development Update Center (UC).
The support for JMX instrumentation has been enhanced with a new wizard for MXBeans, support for the Java SE plaform 6 JConsole Plugins and a lot of other improvements throughout.
How do you install and use it?
- Download NetBeans 6.0 from NetBeans download
- Download the module from the NetBeans Update Center : Tools/Update Center
- Select and install the Management/JMX module.
The main enhancements
- New category JMX, which used to be named Management.
- Added support for MXBean.
- One wizard per type of MBean (MBean, MXBean, From an Existing Java Class, StandardMBean).
Previous release wizard dealt with all kinds of MBeans. This added unnecessary complexity.
- Removal of Dynamic MBean support. If you want to add metadata to your management interface, use the StandardMBean wizard.
- Removal of JUnit test case generation. Instead, use NetBeans' native JUnit support to generate unit tests for your MBeans.
Contextual actions to update MBean classesThese actions are now contextual to the Editor. It is no longer necessary to select an MBean Class Node in the Project tree.
- This wizard has been removed. It used to place excess constraints on MBean registration.
- MBean registration in the Platform MBeanServer can now be generated in any Java source.
Thanks to a new Contextual Editor action (JMX/Generate MBean Registration...) you generate MBean registration code where you want to.
- Position your mouse pointer where you want registration code to be generated
- Right click, select JMX/Generate MBean Registration...
- The MBean registration window pops up. Select (or type in) the Class of MBean you want to register
- Click OK, and the code to register your MBean in the Platform MBeanServer is generated
Management and Monitoring Support for Java SE projects
- Better integration of M&M configuration in a new "Monitoring and Management" Project Properties Node
- JConsole project auto-connect has been extended with the ability to provide JConsole plugins.
JConsole OptionsAbility to configure JConsole through NetBeans Options (JConsole options are located in the Miscellaneous category).
Current issues and limitations
- Some generated code is not properly indented.
- Some generated comments are replicated.
- Manager wizard. Generation of the code to establish a secure connection is not working. Don't select this option.
- Tutorial and JavaHelp have not yet been updated.
- For people building the module from the sources (CVS module "management"), functional tests have not yet been updated.