How to I set and error handler for a FileEndpoint. Is it possible ??
For eg :
from("direct:ss").errorHandler(deadLetterChannel("smtp:[EMAIL
PROTECTED]").maximumRedeliveries(1))
.convertBodyTo(PersonDocument.class);
Above works fine, as it sends eMail if there is a problem in converBodyTo()
from("file:src/data?noop=true").errorHandler(deadLetterChannel("smtp:[EMAIL
PROTECTED]").maximumRedeliveries(1))
.convertBodyTo(PersonDocument.class);
Above does not work. No eMail is sent.
Documentation says ErrorHandler is for EventDriven consumer. I guess File
poller is non Event Driven (??).
So, Please help me to resolve this.
--
View this message in context:
http://www.nabble.com/ErrorHandler-for-FileEndpoint-tf4545877s22882.html#a12972357
Sent from the Camel - Users mailing list archive at Nabble.com.