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: 2.0.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.0.0


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