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/
|