Currently I have a basic FTP Inbound Channel Adapter, configured with a poller
<int-ftp:inbound-channel-adapter id="ftpInboundChannelAdapter">
<int:poller cron="#{fooProperties['foo.ftp.cron']}" max-messages-per-poll="-1" />
</int-ftp:inbound-channel-adapter>
The cron is once a day at a specific time.
However, on occasion, the FTP server we are connecting to will throw an error, eg
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
In this case, we would like to "repoll", a configurable amount of times.
I read about int:request-handler-advice-chain but it doesnt look like you can use this on the FTP adapter's poller.
I am using SI 2.2.6, but could upgrade if needed