ActiveMQ does support multiple queues using commas, but the Camel component won't let you configure them individually.

As Quinn mentioned, you'll need to use multiple from's, or multiple routes that share a sub-routine route.

-Matt

On 4/8/16 1:53 PM, Quinn Stevenson wrote:
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