Good options.
The key for the move option to work is that the move MUST be on the same volume. A move (or rename) is an atomic operation – when the src and tgt names are on the same volume. If they are on different volumes, the OS will copy and delete which will re-introduce the “picked up before completely” issue.
The move does not need to be a directory change. Any filename that the retrieving system is not looking for can be used as the first filename. Then rename to what the retrieving system is looking for. Example: retrieving system looking for *.txt files. Write foo.tmp first then rename to foo.txt.
We’ve done all 3. The order of our preference:
- Call the transfer server to indicate a file is ready. Avoid polling altogether. Or have the source system put the file – wM IS supports a couple of different ways to accept a file being put to it and running a service to process it.
- Use the rename technique.
- Use a sentinel file. This usually introduces other headaches and we try to avoid it like the plague.
#B2B-Integration#Integration-Server-and-ESB#webMethods#Application-Platform#Service-Designer#Managed-File-Transfer