How can we verify that a file-poller selects only those files that are completely copied in a directory?

How can we verify that a file-poller selects only those files that are completely copied in a directory?

book

Article ID: KB0084416

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
----------------------------
Description:
----------------------------
If the file is transferred and if the transfer takes a while, BW will create a job as soon as the polling logic is triggered. If the file transfer is not complete, then the file contents that are copied to the job slot will be partial or null.

Resolution:
---------------------------
1). On Windows:

Java code can enhance the file poller. The File Poller reads a file that is being FTP'd in [excluding file content.]. It then goes to group every 15 seconds and tries to rename the file with the same file name. If it succeeds, then the file is complete and can be read. If not, then the file is incomplete. Introduce a wait cycle and try again. Once the process comes out of Group the user can read the file knowing that the file will be complete.

2). On HP-UX,check whether the file size is changing. Once it remains unchanged, we verify that file is completely copied and is ready to be processed.

Issue/Introduction

How can we verify that a file-poller selects only those files that are completely copied in a directory?

Additional Information

N/A