I don’t think you can put two destinations in the same “from” URI - you’ll need 
two from URIs.

> On Apr 8, 2016, at 12:35 PM, rbkumar88 <[email protected]> wrote:
> 
> Hi,
> 
> I am trying to consume from two queues with different options.
> 
> <from uri="activemq:queue:queue1?selector=${header.check} %3D
> 'Y'&amp;concurrentConsumers=3,queue2?concurrentConsumers=8" />
> 
> But getting the following error
> 
> int with value 3,queue2?concurrentConsumers=8 due
> java.lang.NumberFormatException: For input string:
> "3,queue2?concurrentConsumers=8"
> 
> Please help me in resolving this issue.
> 
> P.S.
> 
>  <bean id="activemq"
> class="org.apache.activemq.camel.component.ActiveMQComponent">
>                <property name="brokerURL" value="${actveMq.server}" />
>        </bean>
> 
> 
> Thanks
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-consuming-from-multiple-queues-but-with-different-options-tp5780786.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to