Which kind of container do you use? Which set up? With Karaf/ServiceMix, you can have a Master/Slave set up. This will make sure only one service is started. Otherwise, I'm afraid you have to do it by your own: - Route start flag up should be false in this case and some "route manager" determine which route should be started - something like this). - Or extend the JMS/ActiveMQ component to grab a lock before the endpoint will start listening...
Best, Christian Christian Müller ----------------- Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://www.linkedin.com/pub/christian-mueller/11/551/642 On Wed, Jun 19, 2013 at 8:38 AM, Gnanaguru S < gnanaguru.sattanat...@wipro.com> wrote: > Hi, > > I have a doubt in a HA setup. > > I have a camel application which has a JMS endpoint, say 'Entry' queue. I > have deployed this application in a 4 node cluster. > > But I want only one node to be active at a time. For example if one Camel > node is receiving any message, the other node should NOT accept any > messages > parallely. > > I gone through the selective consumer & idempotent consumer, trying to get > a > logical idea. But couldnt get any idea for a clustered environment. > > Please help. > > Regards > Guru > @gnanagurus > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Selective-Consumer-in-a-clustered-environment-tp5734331.html > Sent from the Camel - Users mailing list archive at Nabble.com. >