Synchronizing Process instances on a file pointer

Hi all,

in our project we have to design a flat file creation process. That means for me, that we have to synchronized the write access to the result file by the process instances.
WebMethods provide the services pub.sync.wait and pub.sync.notify for synchronizing issues.
My question is - can I use both services for synchronizing the process instances? My idea is to set the time value for the service pub.sync.wait to value X and the exclusive parameter to ‘yes’. If ten process instances are waiting for a notification (pub.sync.notify) I have to call the service pub.sync.notify ten times and the waiting process instances will write in to the file one instance after another.
Can anybody tell me if this approach is correct or wrong? Has anybody experience with these issues?

Best regards

Hi, I’m having problems testing the pub:sync.

I have two documents (doc1 and doc2) i both subscribe to these documents. If doc2 came in first, i need to halt it or use the pub:sync.wait, and waits for doc1 to notify for the doc2 to continue.

But if i try running doc2 it waits for the specified time and throw an exception when the specified time is reach. how will i know if my notify works?

thank you very much in advance.