Broker push messages to the consumer in a roundrobin fashion. So I believe if
you run your program a little longer you would be able to see the pattern.
You can avoid it by setting prefetch limit = 1. This is enable consumers to
poll for messages from the queue.

Also it would better if you use pooledconnection instead of establishing
connection every single time.

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Point-to-Point-Model-Multiple-Consumers-ActiveMQ-5-3-2-tp3684188p3694567.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to