【发布时间】:2016-04-11 14:40:15
【问题描述】:
要求:我们正在尝试实现一个应用程序,其功能是使用 spring sftp 出站网关通过 sftp 将文件从入站文件夹移动到进程文件夹。我们已经实现了 sftp 出站网关,如下所示。当我们执行应用程序时,它什么也没给出,即既没有异常也没有预期的输出(即文件没有在 sftp 上移动)
<int-sftp:outbound-gateway id="remoteftpLS"
session-factory="defaultSftpSessionFactory" request-channel="sftpRequestChannel"
filename-regex=".*\.txt$" command="mv" expression="'/tmp/datlaa'"
rename-expression="'/tmp/datlaa/archive'" />
我想将 *.txt 文件从 '/tmp/datlaa 移动到 /tmp/datlaa/archive。
您能否从我这边提出任何配置错误。或者如何让它发挥作用?
谢谢
添加应用程序上下文文件 http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integrationhttp://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/sftphttp://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd">
【问题讨论】: