You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ajayappa <an...@gmail.com> on 2007/10/01 04:10:17 UTC

ErrorHandler for FileEndpoint

How to I set and error handler for a FileEndpoint. Is it possible ??

For eg :

from("direct:ss").errorHandler(deadLetterChannel("smtp:localhost?#xxx@yahoo.com").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:localhost?#xxx@yahoo.com").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.