Access to MBeans

You can use JConsole to inspect and use the MBeans.

To connect to the JBoss EAP server using JConsole, open a command prompt and type the following command :

For Linux: JDK_HOME/bin/jconsole
For Windows: JDK_HOME\bin\jconsole.exe

Select the local org.jboss.modules.Main process and click Connect. You are presented with the following screen.

MBeans in JConsole

To test the MBeans :

  1. Click on the JConsole MBeans tab.
  2. Expand quickstarts in the left column of the console.
  3. Under quickstarts, you see the 4 MBeans: AnnotatedComponentHelloWorld, MXComponentHelloWorld, MXPojoHelloWorld, and SarMXPojoHelloWorld
  4. Expand each MBean and choose: Operations --> sayHello.
  5. Type your name in the (p0 String ) input text box and click the sayHello button.
  6. You will see a popup Window displaying Hello <your name>!.