In addition to managing Coherence with JMX, Coherence provides the ability to manage and monitor "custom MBeans" (that is, application-level MBeans) within the Coherence JMX Management and Monitoring framework. This enables you to manage or monitor any application-level MBean from any JVM, node, or end-point within the cluster.
In addition to the standard Coherence managed object types, any dynamic or standard MBean type may be registered using the com.tangosol.net.management.Registry interface.
Coherence 3.4 can be configured to load platform and standard MBeans on connection to the cluster. This allows administrators and support personnel to update and view system and application information from all nodes in a cluster from a single location. This feature also eliminates the need for JMX programs to connect to multiple sources to gather information.
The following instructions describe how to add a standard MBean to Coherence:
Create a standard MBean.
Add a standard MBean Class or JAR to the Coherence classpath (including central management node).
Create a custom MBean XML configuration file (see "Creating an MBean XML Configuration File").
Modify node startup scripts to reference custom-mbean.xml
(see "Enabling a Custom MBean Configuration File".
Example 29-1 illustrates sample code that programmatically adds a standard MBean to Coherence.
The following instructions describe how to add the results of a JMX query to Coherence.
Create a custom MBean XML file (see "Creating an MBean XML Configuration File").
Configure node startup script to include JMX MBean Server
Configure a node startup script to reference custom-mbean.xml (see "Enabling a Custom MBean Configuration File").
Figure 29-1 illustrates an example of running a JMX Query in JConsole.