You can add the concurrentConsumers option to the JMS consumer. Camel
will then keep consuming messages in other threads even if the first
one is busy doing the redeliveries.

Alternatively, you can configure broker-side redeliveries in AMQ is
you want async behavior. In that case, you should not handle the
exception in Camel so that it propagates back to the broker.

- Raúl.

On 23 Jul 2013, at 08:12, Marco Westermann <[email protected]> wrote:

> Hi,
>
> I have a route with an errorHandler configured. I set it to redeliver async. 
> But when an error occures the remaining messages on the queue are processed 
> after the redelivery of the failed message ends.
>
> Here is my routebuilder: http://pastebin.com/8fUED75R
>
> Is there something wrong with it? I use camel 2.10.4
>
> the process method which is invoked from the route logs a line: processing 
> new order 123123
> and my log looks like this: http://pastebin.com/iLE6MqJJ
>
> why is my redelivery sync instead of async?
>
> best regards,
>
> Marco

Reply via email to