The consumer.bridgeErrorHandler option would be great, but I don't exactly
get how to use it. My route looks like this now and the Exception still is
not caught by the .onException clause. Should this code work if the folder
"Notification1" does NOT exist?

context.addRoutes(new RouteBuilder() {
        public void configure() {
        
onException(org.apache.camel.component.file.GenericFileOperationFailedException.class).log("Exception
caught");
                                
        
from("ftp:[email protected]:21/Notification1/?noop=true&password=password&recursive=true&sendEmptyMessageWhenIdle=true&consumer.bridgeErrorHandler=true")
                .to("file:storage");
        }
});

--
View this message in context: 
http://camel.465427.n5.nabble.com/Changing-from-file-consumer-to-ftp-consumer-tp5715125p5715164.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to