You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by SwenVogel <sw...@ypsystems.de> on 2010/10/12 00:19:34 UTC

deadLetterChannel with routing slip

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.

Re: deadLetterChannel with routing slip

Posted by Claus Ibsen <cl...@gmail.com>.
Try with a newer version of Camel.


On Tue, Oct 12, 2010 at 12:19 AM, SwenVogel <sw...@ypsystems.de> 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