我正在将每个传入的消息转换为一个文件并上传到SFTP服务器。当SFTP在文件上传期间不可用时,我会得到巨大的异常堆栈跟踪日志。每次收到的消息都会发生这种情况。只是想知道是否有更干净的解决方案,可以捕获这些异常并使用配置的记录器记录自定义消息?(Session.java:183) ~[jsch-0.1.51.jar:na]
at org.springframework.
我有多个线程可以通过Sftp.outboundAdapter上传sftp文件。每个线程都需要创建一个具有公共根的目录路径。at org.springframework.integration.sftp.session.SftpSession.mkdir(SftpSession.java:232)
at org.springframework.integration.file.remote.RemoteFileUtils.makeDirector
我已经创建了一个tasklet来使用Spring-Integration-Batch在SFTP服务器上下载文件。下面是我正在运行的微线程: public class FtpFileDownloadTasklet implements Tasklet {
@Value("${ftp.source.directory(SftpSession.java:103) ~[spring-integration-sftp-5.1.4.RELEAS
...步骤2: Shell通道步骤3:执行ssh命令登录Unix服务器并转到所需的路径convenience shellStream.println(command); 步骤4:从Unix服务器获取文件并放入SFTP:
code to connect sftp channel and put the file from