Hello everyone, and happy Friday!

I have a Spring web application that uses the @Consume annotation to pull
from an ActiveMQ queue.  Is it possible to configure this to create
multiple consumers from the queue?  I was hoping I could add something like
this:

@Consume(uri="activemq:queue:MyQueueName?maxConcurrentConsumers=10)

When the application is started I still see only one consumer of that queue
in the ActiveMQ admin console.

The class where I have this annotation is a Spring bean and is by default a
singleton.  I was hoping that the Consume annotation did some magic with
the underlying Camel context and threadPoolTaskExecutor.

If I want to have multiple consumers, do I need to create my consumers in a
pool, or is there a Camel way to handle this?



Many thanks,


Rob

Reply via email to