The ClusterRoundRobingDistributor aways favour the local queue on the Cluster.
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction
tx)
| {
| //First try the local distributor
|
| if (trace) { log.trace(this + " first trying with local distributor");
}
|
| Delivery del = localDistributor.handle(observer, ref, tx);
|
| if (trace) { log.trace(this + " local distributor returned " + del); }
|
|
So.. if you have your MDB on ServerA and Producer on ServerA, the MDB on ServerA will
aways receive the messages.
If you were sending to a ServerC with no consumers on it, then the load would be balanced
between ServerA and B.
If you need that kind of load, you could be using two producers, on two distinct
connections created by a ClusteredConnectionFactory.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142789#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...