【发布时间】:2017-09-08 17:06:46
【问题描述】:
我正在使用 Spring Integration 来 FTP 文件。在我处理完该文件后,虽然我想将文件从 FTP 目录移动到 FTP 服务器上的存档目录。我该怎么做?
我认为解决方案可能涉及使用文件名丰富方法标头,但它看起来不像流式通道适配器使其可用(因为它只是一个流而不是文件/路径)。
<int-ftp:inbound-streaming-channel-adapter
auto-startup="true" id="ftpListener2" channel="ftpChannel"
session-factory="ftpSessionFactory" remote-directory="/data/crp/prd/ald/01/stuff/archive"
filename-pattern="ADX_I.2017083100100.tar.gz">
<integration:poller fixed-rate="5000"
max-messages-per-poll="-1" />
</int-ftp:inbound-streaming-channel-adapter>
【问题讨论】: