0
目前,我有一个基本的FTP入站通道适配器,以轮询重试Spring集成FTP入站通道适配器
<int-ftp:inbound-channel-adapter id="ftpInboundChannelAdapter">
<int:poller cron="#{fooProperties['foo.ftp.cron']}" max-messages-per-poll="-1" />
</int-ftp:inbound-channel-adapter>
的cron是一旦在特定的时间一天配置。
然而,有时,我们连接FTP服务器将抛出一个错误,例如
org.apache.commons.net.ftp.FTPConnectionClosedException: FTP response 421 received. Server closed connection.
在这种情况下,我们谨以“repoll”的次配置量。
我读了关于int:request-handler-advice-chain
,但它看起来不像你可以在FTP适配器的轮询器上使用它。
我使用SI 2.2.6,但如果需要的话