This content has been marked as final.
Show 1 reply
-
1. Re: jmx clustering
justkeys Sep 8, 2008 10:15 AM (in response to jnl1)A simple load-balancing solution is to "schedule your jobs to the cluster" by posting your job-objects on a queue, and use an MDB to process these jobs. Jboss jms will load-balance the jobs over all available mdb's, and redeliver the job if a node dies during the handling.
Note that you may want to restrict the nb of MDB's within each node to 1, using the maxSession attribute:
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/jobs"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1")})