You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/06/14 08:53:35 UTC

[jira] Resolved: (CAMEL-1692) Use handled by default on dead letter channel

     [ https://issues.apache.org/activemq/browse/CAMEL-1692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1692.
--------------------------------

    Resolution: Fixed

trunk: 784513.

> Use handled by default on dead letter channel
> ---------------------------------------------
>
>                 Key: CAMEL-1692
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1692
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0-M2
>            Reporter: Nils Breunese
>            Assignee: Claus Ibsen
>
> Using from("file:input") as the starting point of a route and using deadLetterChannel("file:error") as the error handler I had a problem that whenever an exception occurred in the route, the message was correctly sent to the dead letter channel directory, but the message was not removed from the input directory, so it was picked up over and over again.
> In #camel on IRC Claus Ibsen recommended to use .handled(true) on the dead letter channel, which solves this problem. He thought it might be good to have this as the default behavior. From the IRC log:
> ----
> <cibsen> hmm yeah the DLC does not mark it as handled. I guess it should do that when it moves it to the DLC
> <cibsen> then the caller will however not know that exchange failed
> <cibsen> you can mark it as handled by adding .handled(true) to your DLC definition
> <cibsen> maybe it should do that by default. But beware any caller/client will not be notified about this error
> <cibsen> but I guess thats the point with the DLQ to move a message there and just continue as if everything is OK
> <cibsen> let me know if it works and remind me a bit later to look into changing the default to handled(true) for the DLC
> ----

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.