Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: INS connection troubleshooting

...

  • JConsole
  • MC4J
  • ServiceMix JMX Console
    Warning
    titleJMX Connector URI has changed for version 3.x!

    ServiceMix will now use the jndiPath = jmxrmi
    e.g. service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

    The ServiceMix JBIContainer exposes internal services and Components through JMX. The JBIContainer can be passed as a JMXBeanServer or, it can be configured to create one if one doesn't exist (see Configuration). If the JBIContainer creates its own MBeanServer instance, it also creates an RMI JMXConnector - to allow remote connections. The Ant Tasks use the following:
    Code Block
    titleCreating remote JMX Connector to the JBIContainer
    
    String jndiPath = "jmxrmi";
    JMXServiceURL url = new JMXServiceURL ("service:jmx:rmi:///jndi/rmi://<namingHost>:<namingPort>/" + jndiPath) ;
    JMXConnector connector = JMXConnectorFactory.connect(url);
    

    The following configuration variables are required for the next sections.

NOTE: The values shown are the default settings for ServiceMix version 3.x

Anchor
settings
settings

...

Tip
titleDefault Settings

The default namingPort is 1099
The default container name is defaultJBI
The JMX Service URL is: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX

Troubleshooting

In case you cannot connect to the address printed in the ServiceMix console output and find in the JConsole console output some error like

No Format

org.apache.servicemix.jbi.jmx.JaasAuthenticator.authenticate(JaasAuthenticator.java:73) 

you may need to deactivate credentials or use smx / smx (default values for suer and password) to log in. The configuration is in the /conf/jmx.xml, and the default one delegates to JAAS, which is configured in conf/login.properties. The first module uses the two properties file at /conf/groups.properties and conf/users-passwords.properties

Using JConsole

The Java-2 Platform, Standard Edition (J2SE) 5.0 release includes a JMX monitoring tool, JConsole. JConsole monitors applications running on the Java platform and provides information on their performance and resource consumption. Please see Sun's documentation for more information on using this tool. Please see the following sections for instructions on configuring and using JConsole with ServiceMix.

...

  1. Download and build the ServiceMix source code. Please see the Getting Started guide for instructions.
  2. Create the WAR file:
    Code Block
    cd [servicemix_install_dir]\tooling\servicemix-web
    maven war
    
    where servicemix_install_dir is the directory to which ServiceMix was downloaded.
  3. Deploy the WAR file into any servlet engine. Instructions for deploying ServiceMix on Tomcat, JBoss, and Geronimo can be found at the following links:
  4. Run the ServiceMix JMX Console. To do this enter the following URL in a web browser: http://localhost:8080/servicemix-webImage Removed. You will see the following:

...