On Thu, Jul 15, 2010 at 1:11 AM, lp <[email protected]> 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://sc...@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
