On Wed, Jun 27, 2012 at 3:02 PM, stefzar <stef...@hotmail.com> wrote:
> 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?
>

That option requires Camel 2.10 which has NOT been released yet. But will soon.

For older Camel releases check out that other link I gave you.




> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to