I think that this may have something to do with the fact that messages generated on one machine stay local to that machine unless the local machine is overloaded.
Take a look at this thread http://www.jboss.com/index.html?module=bb&op=viewtopic&t=142631
but then again I may be wrong...
We have two JMS servers in a cluster. We have set up the instances to cluster: Post Office and the Destinations have Clustered=true. We are using JBoss Messaging 1.4.0 on JBoss AS 4.2.2.
We have a queue that parses incoming (XML) messages. If the parsing breaks (the client sent a badly-formatted message) the listener puts the message on a "invalid message queue".
The invalid message queues have no listeners attached.
When we look on server 1, we see one number of messages in the invalid message queue, while server 2 has a different number. It seems they are staying on the same node that they posted on.
I expected that a distributed queue would show the same number of messages in the queue no matter what server I looked from.
Is this normal behavior? Is it because there is no listener?
Please read the documentation and the FAQ on clustering.