问题标签 [spring-integration-sftp]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 我们是否有 sftp-Input 适配器的回调方法或事件侦听器
我正在使用 sftp 输入适配器和将轮询文件发布到本地,我想读取内容并实现一些逻辑。sftp inbound-channel-adapter 是否有可用的回调功能?我是 spring 新手,所以请分享在成功轮询后处理文件的可用选项。
配置:
我没有看到每次轮询文件时都会调用的任何回调方法。目的是在固定间隔后从源轮询文件,读取内容并执行一些逻辑。Java代码片段:
spring-integration - how to close the inbound Channel adapter after fetching the files from SFTP server using java configuration
Hi I am pretty new to spring and trying to fetch the files from sftp server using SFTP inbound channel adapter in java config but unable to close the adapter ,I tried using the below code snippet, But Main isn't recongizing the inbound adapter and so adapter.start() and adapter.stop(); are NOT working . Please provide me any working example of closing the InboundChannelAdapter.
}
}
}
spring-integration - 有没有办法在使用 java 配置从 sftp 服务器接收文件后停止入站通道适配器
使用 Java 配置如何启动/停止入站通道适配器,我尝试使用控制总线但我没有成功,请提供一个 java 配置示例。
spring-integration - 如何将自定义方法添加到 spring 集成 ftp 网关接口?
在 Spring integration ftp doc之后,我设法通过 java config 方式将文件发送到 ftp 服务器:
ss
在我看来,上面的代码使用自定义方法“sendToFtp()”将文件发送到目标 ftp 服务器。我的问题是如何在 MyGateway 接口中添加其他方法来实现操作?
spring-integration - sftp-inbound-channel-adapter 的自定义目录扫描器
我们的应用程序将使用目录结构 {date}/{usercode}/* 读取和写入文件到 FTP 文件夹。我们正在尝试使用 sftp 入站适配器。
有没有办法为 sftp 入站适配器设置自定义目录扫描程序?
spring-integration - spring integratoin ftp 如何将文件发送到不同的子文件夹
我已经设法使用以下配置将所有本地文件发送到目标 ftp 服务器文件夹:
现在我需要将每个文件保存在目录结构中作为本地文件。
例如
我怎么能做到这一点,我
java - Spring 入站文件通道适配器 prevent-duplicates=false 不起作用
我遇到了 spring 入站通道适配器的问题。导入新文件效果很好。但是选项 prevent-duplicates="false" 似乎无法正常工作 - 当同名文件保存到指定目录时,它不会被导入。
入站通道适配器的定义:
提前感谢您的任何建议!如果我得到一些工作示例会很好,因为我尝试了很多但到目前为止没有成功。
spring-integration - 使用 Spring Integration SFTP DSL 递归读取文件
我正在尝试使 Spring Integration SFTP 从所有子文件夹递归地从远程服务器读取文件(.txt)。远程文件夹类似于“/tmp/remoteFolder”,所有子文件夹都是日期文件夹,例如“/tmp/remoteFolder/20180830”、“/tmp/remoteFolder/20170902”。
这是我到目前为止的代码
如何将 sftp mget 的根远程目录指定为 /tmp/remoteFolder?为什么这不起作用?为什么我需要指定输出通道?
更新:而不是调用 channel(remoteFileOutputChannel()) 我调用这样的处理程序
代码更新:
使用此更新的代码,我收到以下错误:
spring - SFTP Persistent Accept Only Once 在 sftp 网关上过滤
我有这段代码,我想在其中合并一个 SftpPersistentAcceptOnceFileListFilter ,但我不知道如何。过滤器应该在本地检索文件之前。
java - 来自 windows server spring 集成的 Sftp
我需要将不同的文件sftp到服务器上。
交付范围内的文件位于Windows服务器中。
我考虑为此目的使用Spring Integration适配器,因为我不仅必须交付文件,而且还需要为每个文件交付将元数据信息写入数据库。
您知道如何使用spring集成将Windows文件共享上的多个文件sftp到其他服务器吗?