To poll a directory with FTP, configure an instance of FtpSource
and then connect
it to a channel by configuring a channel-adapter
. The FtpSource
expects a number of properties for connecting to the FTP server as shown below.
<bean id="ftpSource" class="org.springframework.integration.adapter.ftp.FtpSource"> <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"/> </bean>