title: Equivalent Programmatic code to int-ftp:inbound-channel-adapter and int-ftp:outbound-channel-adapter
body: <p>Hi Can any one help me in getting the equivalent programmatic code for below spring context configuration .</p>
  
  <pre><code>&lt;bean id="ftpClientFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory"&gt;
      &lt;property name="host" value="${host}"/&gt;
      &lt;property name="port" value="${availableServerPort}"/&gt;
      &lt;property name="username" value="${userid}"/&gt;
      &lt;property name="password" value="${password}"/&gt;
  &lt;/bean&gt;
  &lt;int-ftp:inbound-channel-adapter id="ftpInbound"
              channel="ftpChannel"
              session-factory="ftpClientFactory"
              filename-pattern="*.txt"
              auto-create-local-directory="true"
              delete-remote-files="false"
              remote-directory="/"
              local-directory="#{ T(org.springframework.integration.samples.ftp.TestSuite).LOCAL_FTP_TEMP_DIR}/ftpInbound"&gt;
          &lt;int:poller fixed-rate="1000"/&gt;
  &lt;/int-ftp:inbound-channel-adapter&gt;
  
  &lt;int-ftp:outbound-channel-adapter  id="ftpOutbound"
                  channel="ftpChannel"
                  remote-directory="/"
                  session-factory="ftpClientFactory"&gt;
                  &lt;int-ftp:request-handler-advice-chain&gt;
                      &lt;int:retry-advice /&gt;
                  &lt;/int-ftp:request-handler-advice-chain&gt;
  &lt;/int-ftp:outbound-channel-adapter&gt;
  
  &lt;int:channel id="ftpChannel"&gt;
      &lt;int:queue/&gt;
  &lt;/int:channel&gt;
  </code></pre>
  
  <p>Thanks In advance.</p>