...
Warning |
---|
title | JMX 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 |
---|
title | Creating 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
Tip |
---|
|
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
Tip |
---|
|
The default namingPort is 1099 The default container name is defaultJBI The JMX Service URL is: service:jmx:rmi:///jndi/rmi://localhost:1099/defaultJBIJMX |
...