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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]