You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "Preissler, Z 1903, BN" <G....@DeutschePost.de> on 2005/07/26 11:21:48 UTC

Some questions regarding Hivemind and JMX

We're currently trying to decide whether to use Hivemind for a new project
we're about to start. There are a couple of questions that I can't answer
from the documentation on the website:

I take it that any Object that should be exposed via JMX using Hivemind has
to be defined as a Hivemind service. Right or wrong?

Can a Hivemind service be instantiated more than once? If yes, can those
instances simultaneously be exposed via JMX?

Is there any way to define the MBean ObjectName for Hivemind services?

Regards & TIA

	Jerry


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Re: Some questions regarding Hivemind and JMX

Posted by Achim Huegen <ac...@gmx.de>.
Preissler, Z 1903, BN wrote:
> We're currently trying to decide whether to use Hivemind for a new project
> we're about to start. There are a couple of questions that I can't answer
> from the documentation on the website:
> 
> I take it that any Object that should be exposed via JMX using Hivemind has
> to be defined as a Hivemind service. Right or wrong?

You can add additional mbeans using the MBeanRegistry service:

http://jakarta.apache.org/hivemind/hivedocs/service/hivemind.management.MBeanRegistry.html
http://jakarta.apache.org/hivemind/hivemind-jmx/apidocs/org/apache/hivemind/management/MBeanRegistry.html

> 
> Can a Hivemind service be instantiated more than once? If yes, can those
> instances simultaneously be exposed via JMX?

If you want to have differently configured singleton instances of a
service class then you must define multiple hivemind service points.
And yes those services can be exposed simultaneously.

> 
> Is there any way to define the MBean ObjectName for Hivemind services?

You could overwrite the ObjectNameBuilder service to change the general 
naming scheme of automatically generated object names:
http://jakarta.apache.org/hivemind/hivemind-jmx/apidocs/org/apache/hivemind/management/ObjectNameBuilder.html

To change only the name of one service, there is a object-name attribute 
in the mbeans configuration:

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

Achim



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org