camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-1367) DeadLetterChannel - on redelivery should not call done on callback as will complete the exchange
Date Sat, 21 Feb 2009 11:47:00 GMT
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.


Mime
View raw message