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. dej...@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.barra...@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é >