[jboss-user] [JBoss Messaging] - Re: Help on JBoss Messaging
do-not-reply at jboss.com
Fri Jun 13 18:05:42 EDT 2008
Thank you so much for the link.
I am confused a lot now; I apologize for troubling you. Let me ask few things and I am sure when I get this answered, I will have the confusion cleared.
1. When you say anonymous wrote : we aways send the message to the consumers on the box where you sent the message do you mean that it is better to have two or more nodes (in that case, two or more queues) in the same Jboss Server i.e., have two or more instances, messaging-node0, messaging-node1....in the same Jboss Server in a single machine?
If you meant that, I have tried exactly the same thing; I have one Jboss 4.2.2 GA server with two messaging nodes, messaging-node0 and messaging-node1. Now when I send messages to one queue, I thought that the load balancer will balance the load by sending the messges to all the queues available in the cluster...in my case, the two queues. But it doesnt happen; it sends it to one queue and while in the process of sending, if the queue fails, then it sends it to the next queue.
2. When you say anonymous wrote : If you have multiple producers (one on each box), you would have the load distributed Do you mean to say that I should have NOT just one producer, but have 2 or more producers to produce messages to have the load evenly distributed? If you say yes, I am going to test with 2 or more producers(one in each node) to see if the load is balnced.
3. Also, while receiving or consuming, when I have 2 or more consumers (in different nodes on the cluster), will each consumer consume from the queue where the messages are queued up. Let me put it this way; I have three physical machines and three Jboss AS 4.2.2 GA, one for every machine and I have distributed queues named testDistributedQueue in all the nodes. Now, I have TWO producers(let us say, in node 1 and node 2) producing the messages to the queues (in node 1 and node 2) and THREE consumers (one in each node, 1, 2 and 3) listening to the queues.
3.1 While sending, will the messages be evenly sent across to all the THREE queues including the third queue (remember only TWO producers are sending the messages)
3.2 While consuming, will all the consumers consume evenly...
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158097#4158097
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158097
More information about the jboss-user