BrainDrain,
If I were you, I’d utilize the filepolling port. You configure this under Security_Ports, Add a port.
One of the settings is to process via file age (seconds) if it is a timed event. Otherwise, activity will occur whenever a file is placed in the directory. You can set working directories, error directories and finished directories (where the file is moved once processing is complete.)
As far as your scheduler is concerned, I assume it is a repeating task with a simple interval of 3600 seconds (1 hour). If this is the case, just check the box “Repeating”, “Repeat from end of invocation.”
This will insure that only one thread operates at one time and thus, you will not grep the same file names by two separate processes.
HTH,
Ray
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods