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 JConsole window will appear.Code Block cd [J2SE_install_dir]\bin jconsole
- Click on the Advanced tab. Enter the following in the box for "JMX URL":
service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX
.Panel borderColor #ccc title JConsole Agent - JMX Console borderStyle solid - Click the Connect box to connect to the ServiceMix container.
org.servicemix
} will be visible in the console. Double click Click onorg.servicemix
to see its MBeans.Panel borderColor #ccc title JConsole Management & Monitoring - JMX Console borderStyle solid
Testing JConsole with ServiceMix
To #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 |
where servicemix_install_dir
is the directory in which ServiceMix was installed.
#Run Then run JConsole (see aboveprevious section) and double click on ((org.servicemix}}.
#Click on
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.
...