title: Spring Integration Sending Files to Remote Directory
body: <p>I am trying to send files from my local directory to a remote directory by FTP,
  and could able to send the files successfully, but additionally the files are being FTP'ed to the local directory, since the ftpInbound is also establishing a FTP connection, which i don't want my application to do. If I remove  inbound FTP channel adapter, couldn't feed the local directory path to the ftpOutbound also. Are there any other ways to resolve this problem ?</p>
  
  <pre><code>&lt;int-ftp:inbound-channel-adapter id="ftpInbound"
                                  channel="ftpChannel" 
                                  session-factory="ftpClientFactory"
                                  filename-pattern="*.txt"
                                  local-directory="$dina-communication.batch-{localDirectory}"
                                  temporary-file-suffix=".writing"&gt;
  &lt;int:poller fixed-rate="10000" /&gt;
  
  &lt;/int-ftp:inbound-channel-adapter&gt;
  
  &lt;int-ftp:outbound-channel-adapter  id="ftpOutbound"
                                  channel="ftpChannel" 
                                  session-factory="ftpClientFactory"
                                  remote-directory="$dina-communication.batch-{Remote_directory}"
                                  temporary-file-suffix=".writing"&gt;
  &lt;/int-ftp:outbound-channel-adapter&gt;
  </code></pre>