activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yousafsajjad <muhammad_you...@dell.com>
Subject Re: Point-to-Point Model - Multiple Consumers - ActiveMQ - 5.3.2
Date Tue, 26 Jul 2011 01:18:50 GMT
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.

Mime
View raw message