...
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 | ||
---|---|---|
| ||
String jndiPath = <container name> + "JMX"; JMXServiceURL url = new JMXServiceURL ("service:jmx:rmi:///jndi/rmi://<namingHost>:<namingPort>/" + jndiPath) ; JMXConnector connector = JMXConnectorFactory.connect(url); |
Tip | ||
---|---|---|
| ||
The default namingPort is 1099 | ||
Tip | ||
title | DefaultThe JMX Service URL | is: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX |
...