[jboss-user] [JBoss Messaging] - Cluster messaging distribution
do-not-reply at jboss.com
Mon Dec 29 05:25:56 EST 2008
I have gone through most of the past post on the same topic still there is one unanswered question.
We have a clustered set up for JBM-1.4.0 SP3 with JAS-4.2.1 , two instance A n B are part of the cluster.
We have a test client which inside a for loop does follwing.
| QueueConnectionFactory qcf = (QueueConnectionFactory) cntxt
| Queue queue = (Queue) cntxt.lookup("queue/RequestQueue");
| QueueConnection qc = qcf.createQueueConnection();
| QueueSession qs = qc.createQueueSession(false,
| QueueSender queueSender = qs.createSender(queue);
| ObjectMessage msg = qs.createObjectMessage(batchId);
Here we are using HA-JNDI for lookup.
We are using default ClusterredConnectionFactory which has ,
| <attribute name="SupportsFailover">true</attribute>
| <attribute name="SupportsLoadBalancing">true</attribute>
| <attribute name="LoadBalancingFactory">org.jboss.jms.client.plugin.RoundRobinLoadBalancingFactory</attribute>
For RequestQueue is set to Cluster TRUE in destination-service.xml.
As per our expectation messages should be distributed in round robin fashion , We have around 80% results when it is not distributed in round robbin fashion.
Is there any other attribute which controls distribution ?
For some cases it goes to one server only.
Our client runs on different server so A and B both are remote server for client.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198705#4198705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198705
More information about the jboss-user