Hi Guys,
I found FTP Inbound Channel Adapter is very useful to integrate legacy mainframe system cause they also write to FTP directly as a output.
Below is my configuration to polling remote FTP folder changes, once new files arrived, new message(File as a payload) will be generated to publish-subscribe-channel for later processing.
My requirement is pulling remote FTP folder, download to local directory, delete remote FTP files, process local file then archive to another folder.
But I found local-directory in FTP Inbound Channel Adapter is strange, I can not even delete them manually.
So my question is,
How to clean Local Directory in FTP Inbound Channel Adapter?
Code:<int-ftp:inbound-channel-adapter id="ftpAdapter" cache-sessions="false" channel="B-40-channel" session-factory="eFtpClientFactory" auto-create-local-directory="true" delete-remote-files="true" remote-directory="${B-40-remoteDirectory}" local-directory="${B-40-localDirectory}" temporary-file-suffix=".trl"> <int:poller max-messages-per-poll="-1" fixed-rate="${FTPPollingRate}" /> </int-ftp:inbound-channel-adapter> <int:publish-subscribe-channel id="B-40-channel"> </int:publish-subscribe-channel>


Reply With Quote
