Try with a newer version of Camel.
On Tue, Oct 12, 2010 at 12:19 AM, SwenVogel <[email protected]> wrote: > > 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. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
