I did this:
errorHandler(deadLetterChannel().maximumRedeliveryDelay(3000000L));
exception(java.lang.Throwable.class)
.intercept(new
CustomDelegateProcessor(ErrorConstants.SYSTEM_ERROR));
exception(java.net.SocketException.class)
.maximumRedeliveries(5)
.useExponentialBackOff()
.initialRedeliveryDelay(300000)
.backOffMultiplier(2.0)
.intercept(new
CustomDelegateProcessor(ErrorConstants.SOCKET_ERROR));
and it solved all the problems.
Prtaibha
--
View this message in context:
http://www.nabble.com/camel-1.4-redelivery-issue-tp18960138s22882p18976804.html
Sent from the Camel - Users mailing list archive at Nabble.com.