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

Willem Jiang commented on CAMEL-7050:
-------------------------------------

As the DeadLetterChannel suppose to be the last endpoint for accepting the 
message which cannot be route, so it just ignore the exception. But it cause 
some trouble if camel  DeadLetterChannel get exception when it deliver the 
message to the endpoint.

I just added checkException dsl in DeadLetterChannelBuilder in Camel-2.14, so 
deadLetterChannel can let the default error handler check the exception for it.

The work around is using other error hander instead of DeadLetterChannel to 
handle the message.

> 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: Bug
>          Components: camel-jms
>    Affects Versions: 2.11.0
>            Reporter: Øyvind Ingebrigtsen Øvergaard
>            Assignee: Willem Jiang
>         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.2#6252)

Reply via email to