Hi,

The snippet below works nicely without the ".thread(5)". You'll have one log
message for the exception.
But with the .thread(5) it does weird things. It seems that another exchange
(.../0-0) gets redelivered 6 times (the default policy). I attached the
debug log  http://www.nabble.com/file/p18834975/debug.log debug.log .

Is this a bug or a feature :-) ? Or I'm doing something wrong in the route
setup ...

Thanks,
Bela

---- 8< ----

from("seda:q")

.errorHandler(deadLetterChannel("log:q?level=ERROR").maximumRedeliveries(1)) 
        .thread(5)
        .process(new Processor() {
                public void process(Exchange exchange) throws Exception {
                        throw new Exception("Kaboom!"); 
                }
        });
                
ProducerTemplate template = camelContext.createProducerTemplate();
template.sendBody("seda:q", "Testing..."); 

-- 
View this message in context: 
http://www.nabble.com/Error-handler-threading-issue-tp18834975s22882p18834975.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to