Nov 28th, 2012, 11:32 PM
Clean up temp files for ftp inbound channel?
What's the best way to clean up the temp files (in the local directory) after the file has been processed by the ftp inbound channel adapter? At present, the files are getting transferred and processed just fine, but the local copies are not getting deleted, so they get processed again when the server re-starts.
Nov 29th, 2012, 02:59 AM
You need this one: http://blog.springsource.org/2012/09...ynchronization
But you should be careful in async nested message-flow: txSync will works within invocation thread (in your case it is 'poll') and if you deside to place a Message into some outbound queue (or executor channel), your commit remove local file and you break you app.