【发布时间】:2021-01-26 16:43:10
【问题描述】:
我不确定,但我无法将轮询器添加到我的 sftp 出站网关。我试过这样做,但我没有运气,它在启动期间不会轮询,所以我创建了一个服务接口,然后通过调度程序调用该方法。有更好的方法吗?这是我所做的 sn-p :
<int:channel channel="requestChannel"
<int:queue />
</int:channel>
<int-sftp:outbound-gateway id="ls"
auto-startup="true"
expression="payload"
request-channel="requestChannel"
remote-directory="${remote-directory}"
command-options="-1"
session-factory="sftpSessionFactory"
command="ls"
reply-channel="replyChannel">
<int:poller fixed-delay="10000" max-messages-per-poll="1"/>
</int-sftp:outbound-gateway>
【问题讨论】:
标签: spring spring-integration sftp