activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: ConcurrentConsumers and ExclusiveConsumers
Date Mon, 12 Mar 2012 11:11:17 GMT
Hi,

unfortunately this will not work as with exclusive consumer only one
consumer will get all the messages, so concurrentConsumers will have no
effect.

Regards
-- 
Dejan Bosanac
Senior Software Engineer | FuseSource Corp.
dejanb@fusesource.com | fusesource.com
skype: dejan.bosanac | twitter: @dejanb
blog: http://www.nighttale.net
ActiveMQ in Action: http://www.manning.com/snyder/



On Fri, Mar 9, 2012 at 11:10 AM, Hervé BARRAULT <herve.barrault@gmail.com>wrote:

> Hi,
>
> I have seen two different interesting options in activemq which are :
>   For a destination [activemq] : consumer.exclusive=true
>   For a consumer [camel-activemq]: concurrentConsumers=XX
>
> Is it possible to mix these two options.
>
> The idea behind is simple.
>
> I have a Broker on 1 JVM.
>
> And 2 JVMs which are able to listen to the queue.
>
> I would have on each JVM XX concurrentConsumers (in order to increase
> throughtput) but i would only that one JVM process all the messages the
> second one would take these messages only if the first one fail.
>
> Is there a way to have this behavior ?
>
> Regards
> Hervé
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message