Hi,
In our cluster, we want to use several different singleton MBeans, letÃÂs say MBean 
A and MBean B should only be active on one node (master node) in the cluster. I have 
declared the following in my hasingleton-example-service.xml file:


  |   <mbean code="org.jboss.ha.singleton.HASingletonController" 
  |           name="jboss:service=HASingletonMBeanExample-HASingletonController">
  |       <depends>jboss:service=DefaultPartition</depends>   
  |       <depends>myservice:service=MBeanA</depends>
  |       <attribute name="TargetName">myservice:service=MBeanA</attribute>
  |       <attribute name="TargetStartMethod">startSingleton</attribute>
  |       <attribute name="TargetStopMethod">stopSingleton</attribute>
  |    </mbean>
  |    
  |    <mbean code="org.jboss.ha.singleton.HASingletonController" 
  |           name="jboss:service=HASingletonMBeanExample2-HASingletonController">
  |       <depends>jboss:service=DefaultPartition</depends>   
  |       <depends>myservice:service=MBeanB</depends>
  |       <attribute name="TargetName">myservice:service=MBeanB</attribute>
  |       <attribute name="TargetStartMethod">startSingleton</attribute>
  |       <attribute name="TargetStopMethod">stopSingleton</attribute>
  |    </mbean>
  | 

Both services are set to active state on the master node, and when the master node 
comes down, another master node is elected, thatÃÂs okay. 

But what if there are multiple nodes in the cluster? Can I be sure that active MBeanA 
and MBeanB reside always on the same node??
Or does the notion of master node only refer to one singleton for sure?

Please tell me, does anybody know? Because I donÃÂt want to get bad surprises later.
Thanks
Marion 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839532#3839532

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839532


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to