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

For more information, please explore the Attic.

Jakarta > HiveMind
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" />

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">

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