PRODUCTS AND SERVICES INDUSTRIES SUPPORT PARTNERS COMMUNITIES ABOUT
  Coherence 3.1 User Guide
  Manage Custom MBeans within the Coherence Cluster
Added by Rob Misek, last edited by Rob Misek on May 24, 2006

Labels

 
(None)

Introduction

In addition to Managing Coherence using JMX, Coherence provides the ability to manage and monitor "Custom MBeans" (i.e. application level MBeans) within the Coherence JMX Management and Monitoring framework. This allows you to manage and/or monitor your application level MBeans from any JVM/node/end-point within the cluster.

Example

In addition to the standard Coherence managed object types, any dynamic or standard MBean type may be registered locally or globally using the Registry.

For example, the following code registers a custom standard MBean object globally:

Registry    registry = CacheFactory.ensureCluster().getManagement();
CustomMBean bean     = new Custom();
String      sName    = registry.ensureGlobalName("type=Custom");

registry.register(sName, bean);