title: How can we set the poll configuration(polling the FTP server) in Spring Integration with FTP
body: <p>I am writing an application to connect to the FTP server to transfer files to my local machine.For this,I am using the Inbound Channel Adapter.Once,I start the application,I see that all the relevant files are getting transferred to my local directory from the FTP server until a time is reached when all the files are finally in sync(same number of files on both FTP server and local). I now want to poll the FTP server every 5 minutes to check for any new files present.I initially thought it would be the field 'fixed-rate' but it seems like it polls every 3 seconds to the FTP server.Am I missing something here?</p>
  
  <p>My config file is as under:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:int="http://www.springframework.org/schema/integration"
         xmlns:int-ftp="http://www.springframework.org/schema/integration/ftp"
         xmlns:context="http://www.springframework.org/schema/context"
         xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
          http://www.springframework.org/schema/integration/ftp http://www.springframework.org/schema/integration/ftp/spring-integration-ftp.xsd"&gt;
  
      &lt;context:property-placeholder location="classpath:application.properties"/&gt;
  
      &lt;bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory"&gt;
          &lt;property name="host" value="${ftp.host}"/&gt;
          &lt;property name="port" value="${ftp.port}"/&gt;
          &lt;property name="username" value="${ftp.username}"/&gt;
          &lt;property name="password" value="${ftp.password}"/&gt;
      &lt;/bean&gt;
  
      &lt;int-ftp:inbound-channel-adapter id="ftpInbound"
                                       channel="ftpChannel"
                                       session-factory="ftpSessionFactory"
                                       filename-pattern="*.xml"
                                       auto-create-local-directory="true"
                                       delete-remote-files="false"
                                       remote-directory="/"
                                       local-directory="ftp-inbound"
                                       local-filter="acceptOnceFilter"&gt;
  
          &lt;int:poller fixed-rate="10000" max-messages-per-poll="-1"&gt;
              &lt;int:transactional synchronization-factory="syncFactory" /&gt;
          &lt;/int:poller&gt;
  
      &lt;/int-ftp:inbound-channel-adapter&gt;
  
      &lt;bean id="acceptOnceFilter"
            class="org.springframework.integration.file.filters.AcceptOnceFileListFilter" /&gt;
  
      &lt;int:transaction-synchronization-factory id="syncFactory"&gt;
          &lt;int:after-rollback expression="@acceptOnceFilter.remove(payload)" /&gt;
      &lt;/int:transaction-synchronization-factory&gt;
  
      &lt;bean id="transactionManager"
            class="org.springframework.integration.transaction.PseudoTransactionManager" /&gt;
  
      &lt;int:channel id="ftpChannel"&gt;
          &lt;int:queue/&gt;
      &lt;/int:channel&gt;
  &lt;/beans&gt;
  </code></pre>