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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...