Versions Compared

Key

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

...

This document explains how to connect a JMX Console to ServiceMix. Two open-source JMX Consoles will be discussed:

The servicemix ServiceMix JBIContainer exposes internal services and Components through JMX. The JBIContainer can be passed a JMXBeanServer or 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 this:

Code Block
titleCreating remote JMX Connector to the JBIContainer
String jndiPath = <container name> + "JMX";
JMXServiceURL url = new JMXServiceURL ("service:jmx:rmi:///jndi/rmi://<namingHost>:<namingPort>/" + jndiPath) ;
JMXConnector connector = JMXConnectorFactory.connect(url);


Default
Tip
titleDefault Settings

The default namingPort is 1099
The default container name is defaultJBI

Tip
title

The JMX Service URL

is: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX

...