View and Test JMX MBeans using JConsole in Red Hat JBoss Enterprise Application Platform

Updated -

Summary

MBeans, or Managed Beans, as detailed in the JMX specification, are fully supported by Red Hat JBoss Enterprise Application Platform 6. The procedure below describes how to use JConsole to view or execute JMX MBeans in JBoss EAP.

Procedure to Connect JConsole to a Standalone Server

NOTE: The following commands use the replaceable variable EAP_HOME to denote the path to the Red Hat JBoss Enterprise Application Platform 6 installation. Replace this variable in the commands with the actual path to your JBoss EAP 6 installation.

  1. Start the JBoss EAP server.

    For Linux:  `EAP_HOME`/bin/standalone.sh
    For Windows: `EAP_HOME`\bin\standalone.bat
    
  2. Open a terminal and run the following command to start JConsole on your local machine:

    For Linux:  `EAP_HOME`/bin/jconsole.sh
    For Windows: `EAP_HOME`\bin\jconsole.bat
    
  3. Select the JBoss process and click Connect.

  4. In the JConsole, click on the MBeans tab.

  5. Expand the MBean to view the Attributes and test the Operations.