Versions Compared

Key

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

The 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 it's own MBeanServer instance, it also creates an RMI JMXConnector - to allow remote connections. The Management AntTasks Ant Tasks use this:

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

...