Reputation: 1971
I'm working on a project where I have a lot of zip files in an sftp server. What I want to do is to connect to this sftp server and for each zip file if it exists, transfer it locally decompress it and make my process.
I managed to create my decompress class and set up the spring configuration for my project. I began to look for a tutorial and I found the sample integration spring example but I didn't understand two things. How can I get the information that my connection is established and how to know that there's some zip files in this server? If someone can explain me how to do this with an example it'll be great.
Upvotes: 1
Views: 1522
Reputation: 2072
You can do it by using Spring Integration
framework.
It has it's own SFTP Adapter
. Just initialize the SFTP Session Factory
and create the session object.
More is here: http://docs.spring.io/spring-integration/reference/html/sftp.html
Upvotes: 3