You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by lp <lu...@hotmail.com> on 2010/07/15 01:11:39 UTC

ftp2 maximumReconnectAttempts behaviour‏

hi all,

i have experiencing some intermittent problems using ftp that seem to hang.

i am examing the behaviour of maximumReconnectAttempts .

Q.what is the expected behaviour of ftp2 when the maximumReconnectAttempts
count is exceeded?

ie
<route>
     <from
uri="ftp://scott@localhost/public/reports?password=tiger&binary=true&maximumReconnectAttempts=3"/>
     <to uri="file://target/test-reports"/>
  </route>


A. does it throw an exception that is catchable
B. silently fails
C. does something else

any help appreciated

-lp 
-- 
View this message in context: http://camel.465427.n5.nabble.com/ftp2-maximumReconnectAttempts-behaviour-tp1121546p1121546.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ftp2 maximumReconnectAttempts behaviour‏

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

BTW you can try out the 2.4 release (currently in vote). See this link:
http://camel.465427.n5.nabble.com/VOTE-Release-Apache-Camel-2-4-0-tp1046411p1046411.html



On Thu, Jul 15, 2010 at 1:11 AM, lp <lu...@hotmail.com> wrote:
>
> hi all,
>
> i have experiencing some intermittent problems using ftp that seem to hang.
>
> i am examing the behaviour of maximumReconnectAttempts .
>
> Q.what is the expected behaviour of ftp2 when the maximumReconnectAttempts
> count is exceeded?
>
> ie
> <route>
>     <from
> uri="ftp://scott@localhost/public/reports?password=tiger&binary=true&maximumReconnectAttempts=3"/>
>     <to uri="file://target/test-reports"/>
>  </route>
>
>
> A. does it throw an exception that is catchable
> B. silently fails
> C. does something else
>
> any help appreciated
>
> -lp
> --
> View this message in context: http://camel.465427.n5.nabble.com/ftp2-maximumReconnectAttempts-behaviour-tp1121546p1121546.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: ftp2 maximumReconnectAttempts behaviour‏

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jul 15, 2010 at 1:11 AM, lp <lu...@hotmail.com> wrote:
>
> hi all,
>
> i have experiencing some intermittent problems using ftp that seem to hang.
>

Camel 2.4 is more resilient to network outages and the likes in the
camel-ftp component.
So git the 2.4 release a try when its released in the near time.



> i am examing the behaviour of maximumReconnectAttempts .
>
> Q.what is the expected behaviour of ftp2 when the maximumReconnectAttempts
> count is exceeded?
>
> ie
> <route>
>     <from
> uri="ftp://scott@localhost/public/reports?password=tiger&binary=true&maximumReconnectAttempts=3"/>
>     <to uri="file://target/test-reports"/>
>  </route>
>
>
> A. does it throw an exception that is catchable
> B. silently fails
> C. does something else
>

And since you haven't set any explicit period in the endpoint uri, it
will try again in 0.5 sec.

You can read about error handling for scheduled polling consumers
http://camel.apache.org/polling-consumer.html

It does option B. eg it give up and try again on next scheduled poll.
And you can implement your own strategy and decide what to do as shown
in the link above.


> any help appreciated
>
> -lp
> --
> View this message in context: http://camel.465427.n5.nabble.com/ftp2-maximumReconnectAttempts-behaviour-tp1121546p1121546.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus