On Fri, Nov 23, 2012 at 1:25 PM, Hilde <hilde.sch...@yahoo.de> wrote: > Hi there! > > We have a polling ftp-consumer route configured as follows: > > ftp://00001@upload-dev.mecdoc.local/?binary=true&consumer.bridgeErrorHandler=true&filter=#dlDataFileFilter > &localWorkDirectory=/EXPORTDATAD/tmp&maximumReconnectAttempts=3&noop=true > &pollStrategy=#dn1PollingConsumerPollStrategy&reconnectDelay=10000&sendEmptyMessageWhenIdle=true > &startingDirectoryMustExist=true&throwExceptionOnConnectFailed=true > > The problem we have encounterd is the connection can be disrupted once it > was established first. > At this moment we are not trying to establish the conneciton in order to > enter the route but instead we are already > inside the polling ftp consumer route and trust on a valid connection. > Call me naive but I was conviced that the option /maximumReconnectAttept/ > was intended to catch and remedy such a situation > namely tries to repair the using connection inside the route. > I have debbuged camel code an have figured out that only before establishing > the polling ftp consumer route the > option /maximumReconnectAttept/ is taking into account. The method > /prePollCheck()/ in class > /org.apache.camel.component.file.remote.RemoteFileConsumer<T>/ that uses > the option /maximumReconnectAttept/ is only called > before but not after the polling consumer route is established. > For Telling you the whole story I have an exception policy inside the route. > Could that be the reason to ignore option > /maximumReconnectAttept/? > > *We are using Apache Camel 2.10.2* > > Any ideas would be appreciated! >
It will re-connect on next pool. So if there is a problem during a pooling, then that would fail. And on next scheduled pool, it would re-connection connection. > Cheers > Hilde > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/ftp-consumer-recovering-a-previous-established-connection-tp5723161.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen