Hi,

i want to handle exceptions in an routing slip with the deadLetterChannel.

The problem is that there are no re-deliveries attempts if an exception
occurs.


Im using Camel version 2.2.0


For example the following code never retries:

from("file://c:/camel/work/input?delay=10000")

    .errorHandler(deadLetterChannel(errorHandling).maximumRedeliveries(5))

    .setHeader("test.slip").constant("http://doesnotexist.com";)

    .routingSlip("test.slip")

    .to("file://c:/camel/work/output");


But the following code works fine:

from("file://c:/camel/work/input?delay=10000")

    .errorHandler(deadLetterChannel(errorHandling).maximumRedeliveries(5))

    .to("http://doesnotexist.com";)

    .to("file://c:/camel/work/output");

-- 
View this message in context: 
http://camel.465427.n5.nabble.com/deadLetterChannel-with-routing-slip-tp3208172p3208172.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to