On Mon, Oct 5, 2009 at 12:53 PM, parasmk <[email protected]> wrote: > > I am trying to pull files from a FTP server (my producer): > > from("ftp://s...@localhost?password=secret...") > .to("file://tmp?noop=true"); > > Now, I want to catch errors in the FTP endpoint (invalid login, server down, > etc). I have tried errorHandler() but it only catches the errors produced > after the message enters the exchange i.e. after from(). > > Can you please suggest a way? I'm using Camel 2.0 >
See the pollStrategy option on this page: http://camel.apache.org/polling-consumer.html You can then configure your own poll strategy on the ftp consumer and decide what to do in case of FTP server errors. > THANKS! > > ~Paras > -- > View this message in context: > http://www.nabble.com/catch-error-in-producer-endpoint-tp25748604p25748604.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
