activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Samplonius <...@samplonius.org>
Subject Re: Kind of "consumer faliover"
Date Mon, 28 May 2007 23:01:37 GMT

----- "ego" <erik_gollot@yahoo.fr> wrote:
> Hey,
> 
> I'm not sure that my problem stands for "consumer failover". I would
> like to
> know if it's possible to have a group of consumers, listening the
> same
> Topic. Only one of the consumers is allowed to process the same
> message. The
> idea is that if one of the consumer die, the other consumers of my
> "cluster"
> can always process the new messages.

  I think you can do this, if you use a queue, instead of a topic, and mark the consumer as
"exclusive".  Topics are for one-to-many communications anyways, so definitely not what you
want.

http://activemq.apache.org/exclusive-consumer.html


Tom

Mime
View raw message