简体   繁体   English

Spring Integration 文件在多个会话中仅来自 SFTP 一次

[英]Spring Integration file only once from SFTP across several sessions

I have a Spring Integration WorkFlow which downloads files from a SFTP directory.我有一个 Spring Integration WorkFlow,它从 SFTP 目录下载文件。 This is done with a RemoteFileInboundChannelAdapterSpec and IntegrationFlows.这是通过 RemoteFileInboundChannelAdapterSpec 和 IntegrationFlows 完成的。
Spring Integration remembers within a session which files it has already downloaded, can I do this across sessions eg through a database and if so how? Spring Integration 在会话中记住它已经下载了哪些文件,我是否可以跨会话执行此操作,例如通过数据库执行此操作,如果可以,如何执行?

It is done not within the session, but by some specific FileListFilter implementation .它不是在会话中完成的,而是由一些特定的FileListFilter实现完成的。 For your goal we suggest an SftpPersistentAcceptOnceFileListFilter where its MetadataStore could really be based on some shared database.为了您的目标,我们建议使用SftpPersistentAcceptOnceFileListFilter ,其MetadataStore可以真正基于某个共享数据库。 See more in docs: https://docs.spring.io/spring-integration/docs/current/reference/html/sftp.html#sftp-inbound在文档中查看更多信息: https : //docs.spring.io/spring-integration/docs/current/reference/html/sftp.html#sftp-inbound

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring SFTP 集成未轮询文件 - Spring SFTP Integration is not polling the file 如何使用 spring 集成和 sftp 将文件从一个目录移动到另一个目录 - How to move file from directory to another with spring integration and sftp 使用 spring 集成从 SFTP 服务器读取 excel 文件的问题 - Issue in reading a excel file from SFTP server using spring integration 使用 Spring Integration 中的 Java 配置从 SFTP 复制和移动文件 - Copy and move a file from SFTP using Java config in Spring Integration Spring 集成 SFTP 按需删除远程文件 - Spring Integration SFTP Delete Remote File On Demand SFTP Spring集成的文件轮询和过滤问题 - File Polling and Filtering Issues with SFTP Spring Integration Windows Server Spring集成中的SFTP - Sftp from windows server spring integration 如何在不使用 spring 引导的情况下使用 spring 集成从 sftp 服务器下载文件 - how to download file from sftp server using spring integration without using spring boot 将文件/文件从远程目录移动到另一个 Spring 集成 SFTP 出站网关 Java 配置/Java DSL - Moving file/files from remote directory to another Spring Integration SFTP Outbound Gateway Java Config/Java DSL 如何使用 spring 集成从 sftp 移动到本地目录时将不同的文件保存到不同的位置 - how to save different file to different location while moving from sftp to local directory using spring integration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM