Here is my RouteBuilder
RouteBuilder builder = new RouteBuilder() {
public void configure() {
errorHandler(deadLetterChannel("mock:error").onRedelivery(new
RedeliverProcessor()).initialRedeliveryDelay(redeliveryDelay).maximumRedeliveries(maximumRedeliveries));
Integer delay = config.getEmailPullDelay();
StringBuffer url = new StringBuffer(config.getEmailServerURL()
+ "?password=" + config.getEmailUserPassword() +
"&deleteProcessedMessages=true");
from(url.toString()).process(new MailProcessor(_secSession));
}
};
What I'd like to do instead, is the following:
Instead of using onRedelivery()
I'd like to have something that will handle a messages that got sent to
deadLetterChannel.
Specifically, I want all messages that failed, sent to another email
address.
Is it possible in Camel 1.6.1? and if yes, what is the best way of
implementing it?
I tired using "impas://" instead of "mock:error"
errorHandler(deadLetterChannel("imaps://[email protected]....")) and
although I didn't get any errors in the log, I didn't get any emails either.
Any suggestions?
Yuliya
--
View this message in context:
http://www.nabble.com/deadLetterChannel-and-Camel-1.6.1-tp24275516p24275516.html
Sent from the Camel - Users mailing list archive at Nabble.com.