2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Jakarta > HiveMind
Jakarta
 
Font size:      

Manage HiveMind services via JMX

Actually it is possible to make any HiveMind service manageable with JMX. An existing service can be registered as MBean easily by a contribution to "mbeans":

<contribution configuration-id="hivemind.management.mbeans" >
    <mbean service-id="test.management.Calculator" />
</contribution>

Now all properties and operations of the service interface are accessible via JMX. Be aware, that this makes sense only for a certain set of supported datatypes.
The service must use the primitive or singleton service model.

If you want to register a MBean that implements one of the standard mbean interfaces like DynamicMBean oder ModelMBean, define the MBean as service and register it the same way:

<service-point id="MyMBean" interface="javax.management.DynamicMBean">
  <invoke-factory model="primitive">
    ...
  </invoke-factory>  	
</service-point>

<contribution configuration-id="hivemind.management.mbeans" >
  <mbean service-id="MyMBean" />
</contribution>