Spring integration 当我们使用spring入站通道适配器持续轮询sftp服务器时,它会挂断吗
我正在使用SpringIntegrationPoller从sftp服务器下载文件Spring integration 当我们使用spring入站通道适配器持续轮询sftp服务器时,它会挂断吗,spring-integration,Spring Integration,我正在使用SpringIntegrationPoller从sftp服务器下载文件 <int-sftp:inbound-channel-adapter channel="myFileDownloadChannel" session-factory="mySftpSessionFactory" remote-directory="#{remot
<int-sftp:inbound-channel-adapter channel="myFileDownloadChannel"
session-factory="mySftpSessionFactory"
remote-directory="#{remote}"
filter = "modifiedFileListFilter"
local-directory="#{local}"
auto-create-local-directory="true">
<integration:poller cron="10 * * * * *" default="true"/>
</int-sftp:inbound-channel-adapter>
<integration:service-activator input-channel="myFileDownloadChannel"
ref="errorTransformer"
output-channel="endChannel"/>
我在6台服务器上运行此代码
CachingSessionFactory
中,以保持会话打开,但许多服务器都配置为丢弃空闲连接在
中添加一个布尔变量“cache sessions=false”
我发现我们需要指定“cache sessions=false”设置,设置为false(默认为TRUE)将导致每次使用时关闭会话。这行吗?为什么?一点基本原理对未来的访客很有帮助。