I have a problem with singleton in cluster environment . first ,there is a singleton mbean ,and I use jmx-console to test it , the singleton works well like the jboss cluster document said,the mbean's MasterNode has the same value with mbean-singletonController's MasterNode,and turn "true" or "false" at the same time.and in the cluster there is only one MasterNode that its value is "true".
the problem is ,each JVM has a singletMBean instance and had been register. when I use MBeanServer server=MBeanServerFactory.findMBeanServer(); ObjectName name = new ObjectNam("jboss.singlton:service=Singleton"); Object obj = server.getAttribute(name, "Client"); to get an Object(obj), it will not always get the same one that get from SingletonMBean .Because there are two SingletonMBean . So now I am confused about what is a singleton. I had thought that if a mbean is deployed as singleton ,it has the same instance in all JVMs ,or just the MasterNode JVM has the singleton's instance and other has not the instance of singleton. I am confused about what service the singlet mbean supports .and how to use it . It is very important to me. my lot of work based on it . anticipates anyone's help. thank you in advance!!!! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848913#3848913 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848913 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user