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

Claus Ibsen resolved CAMEL-1598.
--------------------------------

    Resolution: Fixed

trunk: 773507.

> DeadLetterChannel - Add handled option so its just like onException
> -------------------------------------------------------------------
>
>                 Key: CAMEL-1598
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1598
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.6.0, 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> When an exchange is moved to the dead letter queue on DeadLetterChannel, the 
> original caller will receive the caused exception as its set on the Exchange 
> (getException).
> But sometimes you just want to move a message to the dead letter queue and 
> not let the caller know of this failure.
> That is why we have the handled predicate on {{onException}} that allows you 
> to configure this.
> What is needed is the same *handled* configuration on the DeadLetterChannel 
> itself so you can do:
> {code}
>                 
> errorHandler(deadLetterChannel("jms:queue:dead").maximumRedeliveries(3).delay(5000).handled(true));
> {code}

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

Reply via email to