-
Nov 28th, 2012, 11:32 PM
#1
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
#2
Hello.
You need this one: http://blog.springsource.org/2012/09...ynchronization
http://static.springsource.org/sprin...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.
Take care,
Artem
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules