...
- JConsole
- MC4J
- ServiceMix JMX Console
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:Warning title JMX Connector URI has changed for version 3.x! ServiceMix will now use the jndiPath = jmxrmi
e.g. service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmiCode Block title Creating 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 | ||||
---|---|---|---|---|
|
...
Tip | ||
---|---|---|
| ||
The default namingPort is 1099 |
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.
...
- Download and build the ServiceMix source code. Please see the Getting Started guide for instructions.
- Create the WAR file:
whereCode Block cd [servicemix_install_dir]\tooling\servicemix-web maven war
servicemix_install_dir
is the directory to which ServiceMix was downloaded. - Deploy the WAR file into any servlet engine. Instructions for deploying ServiceMix on Tomcat, JBoss, and Geronimo can be found at the following links:
- Run the ServiceMix JMX Console. To do this enter the following URL in a web browser: http://localhost:8080/servicemix-web
. You will see the following:
...