【发布时间】:2017-06-30 15:25:16
【问题描述】:
我正在尝试通过 FTP 将文件从本地目录发送到远程目录, 并且能够成功发送文件,但另外文件正在通过 FTP 传输到本地目录,因为 ftpInbound 也在建立 FTP 连接,我不希望我的应用程序这样做。如果我删除入站 FTP 通道适配器,也无法将本地目录路径提供给 ftpOutbound。有没有其他方法可以解决这个问题?
<int-ftp:inbound-channel-adapter id="ftpInbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
filename-pattern="*.txt"
local-directory="$dina-communication.batch-{localDirectory}"
temporary-file-suffix=".writing">
<int:poller fixed-rate="10000" />
</int-ftp:inbound-channel-adapter>
<int-ftp:outbound-channel-adapter id="ftpOutbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
remote-directory="$dina-communication.batch-{Remote_directory}"
temporary-file-suffix=".writing">
</int-ftp:outbound-channel-adapter>
【问题讨论】:
标签: spring-boot ftp spring-integration