0 Replies Latest reply on Jul 18, 2016 2:27 AM by Srinivas Kothuri

    How to verify Load balancing in JMS cluster

    Srinivas Kothuri Newbie

      I setup a JBoss EAP 5.2 cluster with 2 nodes and configured a Queue accordingly and attached to a long running MDB.

       

      <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=TestClusteredQueue" xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

              <depends>jboss.messaging:service=PostOffice</depends>

              <attribute name="Clustered">true</attribute>

              <attribute name="JNDIName">jms/TestClusteredQueue</attribute>

          </mbean>

       

      To verify the load balancing scenario, I keep posting messages on the clustered JMS queue from an external application.

       

      It seems the MDB always gets executed only on one node irrespective of the load. Please let me know is this an expected behavior (or) I'm testing incorrectly?