Hello everyone. Having some trouble in implementing this scenario.
Poller with cron -> channel -> ftp:outbound-gateway with LS command -> channel -> filter -> channel -> ftp:outbound-gateway with GET command -> channels
Requirement is that i should poll a remote ftp for a given file and if that file exists to copy ANOTHER (target) file to a local machine.
I've tried using a sftp:inbound-channel-adapter and it copies the remote file but it sends the message to output channel only the first time the remote file is copied. After that it just copies the remote file but does not send a message to output channel. Thats why I want to use two gateways (one LS another Get) to check whether the remote file exists and copy the target file.