You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pjackson <pa...@boeing.com> on 2006/10/03 20:22:38 UTC
Starting to use Active MQ
I'm running the example producer/consumer code that comes with Active MQ
4.0.1, and have a basic question.
If I start only one consumer, it recieves all 10 messages the produce
publishes. If I start two consumers, the consumers receive only half the
messages (5), and 1/3 the messages if I have the consumers.
I would have thought each consumer would receive all 10 (which is what I
want).
Can anyone help.
Thanks,
Paul
--
View this message in context: http://www.nabble.com/Starting-to-use-Active-MQ-tf2377882.html#a6626011
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Starting to use Active MQ
Posted by Komandur <sr...@komandur.com>.
The consumers are connecting using the queue semantics ... in which case a
message is delivered to one-of-them.
If you publish to a Topic, then all the consumers receive a copy of each
message.
Hope this helps.
Regards
- Sridhar Komandur
pjackson wrote:
>
> I'm running the example producer/consumer code that comes with Active MQ
> 4.0.1, and have a basic question.
>
> If I start only one consumer, it recieves all 10 messages the produce
> publishes. If I start two consumers, the consumers receive only half the
> messages (5), and 1/3 the messages if I have the consumers.
>
> I would have thought each consumer would receive all 10 (which is what I
> want).
>
> Can anyone help.
> Thanks,
> Paul
>
--
View this message in context: http://www.nabble.com/Starting-to-use-Active-MQ-tf2377882.html#a6633368
Sent from the ActiveMQ - User mailing list archive at Nabble.com.