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

Claus Ibsen commented on CAMEL-1367:
------------------------------------

Committed revision 746492. for 1.x branch

> DeadLetterChannel - on redelivery should not call done on callback as will 
> complete the exchange
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1367
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1367
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.6.0, 2.0.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0, 1.6.1
>
>
> This bug only surfaces when you use an anonymous inline processor for 
> redelivery as it wont be wrapped in a route with a pipeline etc, that doesnt 
> call the done if it was completed sync
> So we havent seen this bug before now:
> {code}
>                 
> errorHandler(deadLetterChannel("mock:error").delayPattern("0:250;2:500").maximumRedeliveries(3)
>                         .onRedelivery(new Processor() {
>                     public void process(Exchange exchange) throws Exception {
>                         counter++;
>                     }
>                }));
> {code}
> Will resolve in a NPE later.
> But this works:
> {code}
>                 errorHandler(deadLetterChannel("mock:error")
>                         .onRedelivery(new MyRedeliverPrcessor())
> {code}
> Since the processor is not inlined.

-- 
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