Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This section explains how to configure MC4Jto MC4J to monitor ServiceMix. The ServiceMix port number, the ServiceMix container id, and the JMX Service URL will be needed. This information was specified in the previous section in the Default Settings box.

  1. ServiceMix should be running first. Please see the #Getting Started Guide for instructions on running ServiceMix.
  2. Start MC4J from a command shell. The JConsole executable Click on the MC4J executable to start it. It can be found in the bin {{}} directory of the J2SE MC4J installation directory.
    Code Block
    
    cd [J2SE_install_dir]\bin
    jconsole
    
    The JConsole window The MC4Jwindow will appear.

  3. Click on the Advanced tab. The following URL must be entered in the "JMX URL" box: service:jmx:rmi:///jndi/rmi://hostname:port/app_to_monitor. Where the ((hostname}} is name of the host on which the application to be monitored is running, the port is the port number to connect to the application, and the app_to_monitor is the JMX enabled application to monitor. For example, if none of the defaults for ServiceMix have been modified and ServiceMix is running on localhost, enter the following: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX.

    Panel
    borderColor#ccc
    titleJConsole Agent
    borderStylesolid


  4. Click the Connect box to connect to the ServiceMix container. org.servicemix will be visible in the console. Click on org.servicemix to see its MBeans.

    Panel
    borderColor#ccc
    titleJConsole Management & Monitoring
    borderStylesolid


...