camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefzar <stef...@hotmail.com>
Subject Re: Changing from file-consumer to ftp-consumer
Date Wed, 27 Jun 2012 13:02:18 GMT
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:stefan@127.0.0.1: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.

Mime
View raw message