Announcement Announcement Module
Collapse
No announcement yet.
Clean up temp files for ftp inbound channel? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X