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: 2.0-M1, 1.6.0
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.