Annotate with
@Depends("jboss.ha:service=HASingletonDeployer,type=Barrier")
If you want only one instance within the jvm, also annotate with
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName =
"maxSession", propertyValue = "1")})
A second node in the cluster will not run this mdb, till the first master node goes away.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173986#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...