Spring integration for sftp

后端 未结 1 1024
醉梦人生
醉梦人生 2021-01-07 09:52

How can I move file from local system to remote FTP using SFTP adapter. I am going through the examples and all are mentioning to copy files from remote FTP to local machine

1条回答
  •  天涯浪人
    2021-01-07 10:32

    Here's configuration based on yours that I actually checked to be working, you can use it as a starting point.

    
    
    
    
        
        
        
        
    
    
    
    
    
        
    
    
    
    
    
    

    Problems with your configuration:

    1. You use sftpSessionFactory as a channel in inbound-channel-adapter. It should define the message channel to which the payload shall be forwarded to, so in your case it seems like it should be publishToSFTPChannel
    2. publish-subscribe-channel used instead of simple point-to-point channel

    0 讨论(0)
提交回复
热议问题