Results 1 to 2 of 2

Thread: How to clean Local Directory in FTP Inbound Channel Adapter

  1. #1
    Join Date
    Apr 2009
    Posts
    11

    Question 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. #2
    Join Date
    Apr 2009
    Posts
    11

    Default

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

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •