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 Ant Tasks use this:
Creating 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);
The default namingPort is 1099
The default container name is defaultJBI;
MC4J - JMX Console