David is correct in his assessment of the Unix situation with regards to file locking. We recently experienced the exact same behaviour on a project.
As David also states, the solution we implemented was identical to his. Write the file somewhere else (to a working directory), then move the file to the poll directory.
This problem does not occur when polling to a Windows system.
#webMethods#Integration-Server-and-ESB