Versions Compared

Key

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

...

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 = <container name> + "JMXjmxrmi";
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 jmxrmi
The JMX Service URL is: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

NOTE: The values shown are the default settings for ServiceMix version 2.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

...