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

  • coneection to FTP server

    Hello
    I am new to Spring and spring integration in particular
    I am trying to use spring integration in our project, and need to ftp from remote server to local server.
    What I see in the spring integration documentation references (inbound-channel-adapter) and it seems this continues to listen for any new ftp messages, but that is not what I'm looking for, what I'm looking for is to connect to the ftp and get all messages on the remote server and close the connection. is there anything else I need to configure other than

    <bean id="ftpClientFactory"
    class="org.springframework.integration.ftp.session .DefaultFtpSessionFactory">

    .
    .
    .
    </bean>

    in my xml.

    Regards;
    Adam

  • #2
    You can use <ftp:outbound-gateway/> to ls, get, rm files.

    http://static.springsource.org/sprin...tbound-gateway

    There's a sample app here...

    https://github.com/SpringSource/spri...ster/basic/ftp

    with the gateway config here...

    https://github.com/SpringSource/spri...le-context.xml
    Last edited by Gary Russell; Sep 27th, 2012, 05:26 PM. Reason: Fix URLs

    Comment


    • #3
      Thanks Gary,
      but is this the correct url for the sample app, the 2 links are the same
      Regards;
      Adam

      Comment


      • #4
        Sorry about that - I fixed the URLs in my post above.

        Comment


        • #5
          do not worry about my last post, I think I see some of the things I am going wrong
          Last edited by springUser2012; Oct 2nd, 2012, 07:18 PM.

          Comment

          Working...
          X