Results 1 to 2 of 2

Thread: Clean up temp files for ftp inbound channel?

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Default 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.

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    646

    Default

    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
  •