简体   繁体   English

Windows Server Spring集成中的SFTP

[英]Sftp from windows server spring integration

I have a requirement to sftp different files onto a server. 我需要将SFTP中的不同文件发送到服务器上。

The files that are in scope for delivery resides in a Windows server. 交付范围内的文件位于Windows服务器中。

I thought of using Spring Integration adapters for this purpose as not only do I have to deliver files but also have additional requirement of writing metadata information to database for each file delivery. 我考虑将Spring Integration适配器用于此目的,因为我不仅必须交付文件,而且还要求为每次文件交付将元数据信息写入数据库。

Do you have any idea how I can sftp multiple files that are on a windows file share to other servers using spring integration? 您是否知道如何使用Spring Integration将Windows文件中的多个文件与其他服务器SFTP共享?

The standard FileReadingMessageSource does exactly request functionality: https://docs.spring.io/spring-integration/docs/4.3.12.RELEASE/reference/html/files.html#file-reading . 标准FileReadingMessageSource确实请求功能: https : //docs.spring.io/spring-integration/docs/4.3.12.RELEASE/reference/html/files.html#file-reading

There you can use that shared Windows dir to pull files and then you will send messages to the SftpMessageHandler : https://docs.spring.io/spring-integration/docs/4.3.12.RELEASE/reference/html/sftp.html#sftp-outbound . 在那里,您可以使用该共享Windows目录提取文件,然后将消息发送到SftpMessageHandlerhttps : SftpMessageHandler #sftp-outbound

But since we deal with message channels in Spring Integration that pretty easy to send messages somewhere else, eg to JDBC. 但是由于我们在Spring Integration中处理消息通道,因此很容易将消息发送到其他地方,例如到JDBC。

暂无
暂无

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

相关问题 使用 spring 集成从 SFTP 服务器读取 excel 文件的问题 - Issue in reading a excel file from SFTP server using spring integration 如何在不使用 spring 引导的情况下使用 spring 集成从 sftp 服务器下载文件 - how to download file from sftp server using spring integration without using spring boot Spring Integration将文件移动到另一个文件夹,然后发送到sftp服务器 - Spring Integration move file to another folder then send to sftp server 无法使用 spring 集成将文件上传到 sftp 服务器 - Not able to upload file to sftp server using spring integration 使用 Spring 集成/JCraft JSch 在 SFTP 服务器上内部复制文件 - Copying files internally on an SFTP server using Spring integration/JCraft JSch Spring Integration Java DSL SFTP如何在处理程序中获取远程SFTP服务器信息 - Spring Integration Java DSL SFTP how to get remote SFTP server information in handler 从 sftp 读取多个文件夹 - Spring Integration & Batch - Read multiple folders from sftp - Spring Integration & Batch 如何使用 spring 集成和 sftp 将文件从一个目录移动到另一个目录 - How to move file from directory to another with spring integration and sftp 使用 Spring Integration 中的 Java 配置从 SFTP 复制和移动文件 - Copy and move a file from SFTP using Java config in Spring Integration Spring Integration 文件在多个会话中仅来自 SFTP 一次 - Spring Integration file only once from SFTP across several sessions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM