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 ?
<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">
<int:poller fixed-rate="10000" />
</int-ftp:inbound-channel-adapter>
<int-ftp:outbound-channel-adapter id="ftpOutbound"
channel="ftpChannel"
session-factory="ftpClientFactory"
remote-directory="$dina-communication.batch-{Remote_directory}"
temporary-file-suffix=".writing">
</int-ftp:outbound-channel-adapter>