我们使用FTP我们的项目:入站通道适配器轮询从FTP server.it在轮询之间的工作fine.But文件不working.when我看到FTP服务器日志我看到“425无法打开数据连接”。现在,当我重新启动或停止并启动ftp:inbound-channel-adapter时,它的轮询也会正常进行。这个问题反复出现以解决我需要停止/启动ftp的问题:inbound-channel-adapter.ftp:入站通道适配器在linux操作系统下运行。与FTP入站通道适配器FTP问题
现在用弹簧整合3只是为了更加明确我已经包括了XSD信息 (弹簧集成-3.0.xsd,弹簧集成-FTP-3.0.xsd)
没有任何特定的客户端模式我需要设置为FTP,即活动(本地/远程)/被动(本地/远程)等? 低于我的ftp:入站通道适配器配置
<bean id="ftpClientFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
<property name="host" value="abcd.com"/>
<property name="port" value="21"/>
<property name="username" value="userid"/>
<property name="password" value="password"/>
</bean>
<int-ftp:inbound-channel-adapter id="ftpInbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
auto-create-local-directory="true"
delete-remote-files="true"
remote-directory="/"
local-filename-generator-expression="new java.text.SimpleDateFormat('yyyy-MM-dd-hhmmssSSS').format(new java.util.Date()) + '.'+ #this"
local-directory="${ftp.sync.folder}"
remote-file-separator="/">
</int-ftp:inbound-channel-adapter>
所以不知道我可以在FTP server.but我喜欢看什么都没做有没有FTP的任何选项:入站通道适配器或任何东西你的家伙建议,以便每当FTP服务器抛出“425无法打开数据连接。”而不是手动停止/启动FTP:入站通道适配器有任何购股权或自动的方式,使这个work.Thanks上Spring的集成版本和ftp会话工厂
添加信息。
非常好后请出示您的Spring集成版本,并添加您的会话工厂配置的问题。 – 2014-10-29 14:45:20