3.6 FTP Adapters

To poll a directory with FTP, configure an instance of FtpSourceAdapter. The adapter expects a number of properties for connecting to the FTP server (as shown below) as well as the 'channel' and the 'period' for polling. For example, the following adapter would poll every 30 seconds:

<bean id="ftpSource"
    class="org.springframework.integration.adapter.ftp.FtpSourceAdapter">
    <property name="host" value="example.org"/>
    <property name="username" value="someuser"/>
    <property name="password" value="somepassword"/>
    <property name="localWorkingDirectory" value="/some/path"/>
    <property name="remoteWorkingDirectory" value="/some/path"/>
    <property name="channel" ref="someChannel"/>
    <property name="period" value="30000"/>
</bean>