[jboss-user] [Clustering/JBoss] - Re: jmx clustering

justkeys do-not-reply at jboss.com
Mon Sep 8 10:15:36 EDT 2008

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")})

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

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

More information about the jboss-user mailing list