I think you’ll need multiple routes as I don’t think you can have to <from> elements in the same route.
You can setup your <from> routes so they send to a direct endpoint ( <to uri=“direct://do-work”/>, and then have a <from uri=“direct://do-work”/> for the actual processing. > On Apr 11, 2016, at 5:08 PM, rbkumar88 <[email protected]> wrote: > > Hi, > > I am able to split the consumer config into two from URI's. But am getting > the following error for one of the following queue > > JmsConsumer[queue1] WARN: Setup of JMS message listener invoker failed for > destination 'queue1' - trying to recover. Cause: ${header.check} = 'Y' > > Setup: > > > <from uri="activemq:queue:queue2?concurrentConsumers=6" /> > <from uri="activemq:queue:queue1?selector=${header.check} %3D > 'Y'&concurrentConsumers=8" /> > > > Consumer for Queue queue2 is up and running. > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-consuming-from-multiple-queues-but-with-different-options-tp5780786p5780907.html > Sent from the Camel - Users mailing list archive at Nabble.com.
