Hi there! We have a polling ftp-consumer route configured as follows:
ftp://[email protected]/?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! 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.
