[ 
https://issues.apache.org/jira/browse/CAMEL-7050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281771#comment-14281771
 ] 

Claus Ibsen commented on CAMEL-7050:
------------------------------------

The DLC is intended to always handle any new exceptions etc, so a message not 
become poision and caused endless failures.

You can use onException with handle(true) to route to the DLQ queue/bean, and 
if that fails with a new exception, then Camel propagates the new exception, 
which causes the transaction to rollback.

> camel-jms drops messages when errorHandler throws an exception
> --------------------------------------------------------------
>
>                 Key: CAMEL-7050
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7050
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.11.0, 2.14.0
>            Reporter: Øyvind Ingebrigtsen Øvergaard
>            Assignee: Willem Jiang
>             Fix For: 2.15.0
>
>         Attachments: BadErrorHandler.java, 
> JmsDeadLetterChannelHandlerExceptionTest.java
>
>
> When using camel-jms, messages are dropped when an exception is thrown in the 
> deadLetterChannel error handler.
> See the attached failing unit test.
> Verified against 2.11 and HEAD



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to