THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- ServiceMix should be running first. Please see the #Getting Started Guide for instructions on running ServiceMix.
- Run JConsole from a command shell. The JConsole executable can be found in the
bin
directory of the J2SE installation directory.
The JConsoleCode Block cd [J2SE_install_dir]\bin jconsole
- Click on the Advanced tab. Enter the following in the box for "JMX URL":
Code Block service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX
. Double click on the thumbnail to see the full image.
- Click the Connect box to connect to the ServiceMix container. The ServiceMix MBeans will be visible in the console. Click on any one of them to see the statistics and perform monitoring functions.
Testing JConsole with ServiceMix
To see JConsole in action, start one of the ServiceMix examples running, for instance, the
Basic Example:
Code Block |
---|
cd [servicemix_install_dir]\examples\basic ..\..\bin\servicemix servicemix.xml |
Then run JConsole and
then you should see all of the ServiceMix MBeans in the console.
Using MC4J
When you want to get at the ServiceMix MBeans using MC4J use JSR160 as your server connection type and the above default JMX Service URL as your server URL.
...