Hi

Use concurrentConsumers on the Camel activemq endpoint, such as:

 from("activemq:queue:" + queue + "?concurrentConsumers=10").


On Fri, Dec 9, 2011 at 4:16 PM, afilippov <[email protected]> wrote:
> Hi,
>
> Could, please, anybody give some tips on how queue should be configured not
> to make wait the second message until the first one is released. I have the
> following xml config:
>
>        <camel:camelContext>
>                <camel:routeBuilder ref="smConsumer" />
>        </camel:camelContext>
>
>        <bean name="activemq" 
> class="org.apache.camel.component.jms.JmsComponent">
>                <property name="connectionFactory">
>                        <bean 
> class="org.apache.activemq.ActiveMQConnectionFactory">
>                                <property name="brokerURL" 
> value="${brokerURL}" />
>                                <property name="useAsyncSend" value="true" />
>                        </bean>
>                </property>
>        </bean>
>
> and the following inside consumer:
>
> from("activemq:queue:" + queue).delay(5000).to("bean:" + processor +
> "?method=process");
>
> and all messages come synchronously...
>
> Thanks.
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Camel-and-AMQ-async-delivering-tp5062073p5062073.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to