Announcement Announcement Module
Collapse
No announcement yet.
Download file from remote FTP server Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Download file from remote FTP server

    Hi,

    I want to download file from a remote FTP server then continue the upload into database. For this, I think the first step of my job will download the file and second step will do the reading and writing processes. Please help me to implement, whether this method is right or we have any other method to solve my requirement?

    Thanks in advance,
    Shahul

  • #2
    I think the general approach you mentioned is correct. I would use a simple TaskletStep as the first step in your job:

    http://static.springframework.org/sp...n.html#d0e3952

    You could potentially use Spring Integration as well to help with the FTP transfer:

    http://static.springframework.org/sp...l#adapters-ftp

    Comment


    • #3
      Or you can use commons-vfs to download the file from the ftp location. We are using this to download files from the ftp location. Spring Integration is relatively new.

      Comment


      • #4
        Originally posted by ramkris View Post
        Or you can use commons-vfs to download the file from the ftp location.
        Ram,

        Can you please explain about commons-vfs, because I am new to this.

        Thanks,
        Shahul

        Comment

        Working...
        X