Suppose I am sending a message from app1 to app2.
If app2 is down, at servicemix logs I get java.net.ConnectException.

I think if I am using deadletter the error should be caught and after some
retries it should be given to dead letter channel.
Here is the configuration:

errorHandler(deadLetterChannel(
        
"jbi:service:http://servicemix.in2m.com/samples/http/JMSServiceCamelErrorHandler";).maximumRedeliveries(2));
                
from("jbi:service:http://servicemix.in2m.com/samples/http/httpConsumer";)
    
.to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderService";);

So if i am not able to connect to  my "MyProviderService", my message should
be sent to "JMSServiceCamelErrorHandler" right?

Or my understanding is wrong?

Pratibha
-- 
View this message in context: 
http://www.nabble.com/How-does-camel-dead-letter-channel-work--tp18026494s22882p18026494.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to