Results 1 to 5 of 5

Thread: coneection to FTP server

  1. #1

    Default 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. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,037

    Default

    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 at 04:26 PM. Reason: Fix URLs
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3

    Default

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

  4. #4
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,037

    Default

    Sorry about that - I fixed the URLs in my post above.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  5. #5

    Default

    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 at 06:18 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •