camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: catch error in producer endpoint
Date Thu, 08 Oct 2009 04:09:37 GMT
On Mon, Oct 5, 2009 at 12:53 PM, parasmk <parasmk@gmail.com> wrote:
>
> I am trying to pull files from a FTP server (my producer):
>
> from("ftp://some@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

Mime
View raw message