[jboss-user] [Clustering/JBoss] - Re: How can I deploy a MDB to only one instance in a cluster

justkeys do-not-reply at jboss.com
Wed Sep 3 11:10:49 EDT 2008


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#4173986

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



More information about the jboss-user mailing list