[jboss-user] [Clustering/JBoss] - Re: How to auto-start my singleton service?

bstansberry@jboss.com do-not-reply at jboss.com
Wed Mar 28 00:01:53 EDT 2007


Try renaming startSingleton() to start() and stopSingleton() to stop(). 

Methods create()/start()/stop()/destroy() are names of the standard lifecycle callbacks that the ServiceController will invoke as dependencies are satisfied. Since you're getting your HASingleton behavior via an mbean dependency, the callbacks you want to expose should be the standard lifecycle ones.

You probably got the names startSingleton()/stopSingleton() from some docs that deal with HASingletonSupport and related classes like HASingletonController.  That's a different way to do an HASingleton.

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

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



More information about the jboss-user mailing list