I have a JMS queue. After receiving the message it needs to be stored to DB. Then depending on some condition I want send this message to third party service with fixed rate, so I use throttling.
I have the following route:
.when(some condition ..)
The JMS endpoint runs in a mode by default where each JMS message is processed in sequence. If you want to allow to process messages (out of order) due to asynchronous processing, then you need to enable this explict by configuring
asyncConsumer=true on the endpoint.
See more details in the JMS documentation: http://camel.apache.org/jms