I  have solve this problem.

I had thought that the singleton mbean is like the singleton instance .

the truth is ,only the master node run the method (startSinglet()) of singletonmbean , 
when the the master node turned off, the method(stopSinglet())will be invoke ant then 
another master node will be choose from the other jboss server ,then the method (start 
Singleton ()) will be invoke by the master node had just been chosed. 

so ,just the master node run the startSinglton() service .

the service you want it to be singleton can be invoke within startSingleton();

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to