JMX MBean Server
public MBeanServer getMBeanServer()<component>
<key>org.exoplatform.services.database.HibernateService</key>
<jmx-name>exo-service:type=HibernateService</jmx-name>
<type>org.exoplatform.services.database.impl.HibernateServiceImpl</type>
[...]
</component>| Container Type | Access URL |
|---|---|
| RootContainer or StandaloneContainer | service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root |
| PortalContainer (in Portal mode) | service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root/PORTAL_NAME |
| RepositoryContainer | service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root/PORTAL_NAME/REPOSITORY_NAME in Portal mode or service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root/REPOSITORY_NAME in Standalone mode |
| WorkspaceContainer | service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root/PORTAL_NAME/REPOSITORY_NAME/WORKSPACE_NAME in Portal mode or service:jmx:rmi:///jndi/rmi://localhost:9999/eXo/root/REPOSITORY_NAME/WORKSPACE_NAME in Standalone mode |
<init-params> <value-param> <name>protocol</name> <description>protocol is a short string that represent the protocol such as "rmi", "iiop", "jmxmp" or "soap"</description> <value>rmi:///jndi/rmi</value> </value-param> <value-param> <name>host</name> <description>optional hostname</description> <value>localhost</value> </value-param> <value-param> <name>port</name> <description>optional port</description> <value>9999</value> </value-param> <value-param> <name>path-prefix</name> <description>optional path prefix</description> <value>eXo/</value> </value-param> <value-param> <name>name-separator</name> <description>the separator used between the container names</description> <value>/</value> </value-param> <properties-param> <name>environment</name> <description>a set of attributes to control the new connector server's behaviour</description> <property name="jmx.remote.jndi.rebind" value="true"/> </properties-param> </init-params>
Since kernel 2.0.7, it is possible to register all eXo MBeans in a single local MBeanServer in order to be able to manage them through the JConsole or any another JMX Console.
- The JVM system property org.exoplatform.container.jmx.useExistingServer can set to specify that we would like to use a local MBean server. By default, the default behavior will be preserved.
java -Dorg.exoplatform.container.jmx.useExistingServer ...
- The JVM system property org.exoplatform.container.jmx.findExistingServer can set to specify that we would like to find a specific local MBean server. The value of this parameter is the MBean server agent id. By default, the platform MBean Server will be used.
java -Dorg.exoplatform.container.jmx.findExistingServer=${agent_id} ...java -Dorg.exoplatform.container.jmx.findExistingServer ...
- The JVM system property org.exoplatform.container.jmx.findExistingServerFromDefaultDomain can set to specify our local MBean server research. The value of this parameter is the MBean server default domain name. By default, only the agent id is used to find the local MBean server so if several MBean servers have the same agent id, the first one will be used.
java -Dorg.exoplatform.container.jmx.findExistingServerFromDefaultDomain=${default_domain} ...
on 07/05/2009 at 16:41