Announcement Announcement Module
Collapse
No announcement yet.
How to clean Local Directory in FTP Inbound Channel Adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to clean Local Directory in FTP Inbound Channel Adapter

    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>

  • #2
    It seems it's a similar issue with INT-1843

    https://jira.springsource.org/browse/INT-1843

    Comment

    Working...
    X