activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Delivering messages to one consumer only
Date Tue, 07 Aug 2007 16:29:28 GMT
On 8/7/07, Sebastjan Trepca <trepca@gmail.com> wrote:
> Hi all,
>
> I'm a newbie in ActiveMQ world and as I noticed in examples messages
> get delivered to all consumers by default?

Thats only for topics...

> I want to deliver only to
> consumer that first receives the message and consumes it.
>
> So the work flow would go like this:
>
> 1. get message
> 2. mark it as read(unreadable by other consumers)
> 3. process message
> 4. mark it as processed(remove from queue)

All Queue messages are only processed by one consumer. So it sounds
like you just need to use queues...
http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message