I would use a persistent store. The Async webservice - where do the results
get placed when they are ready? I am guessing in some persistent place
(database, possibly a filesystem cache), indexed by a request ID. Have the
synch call just check that location?
-D
"David Elliott" <Da**********@BellSouth.net.nospam> wrote in message
news:97********************************@4ax.com...
I have a distributed system that processes documents. There currently is
an Async
Webservice in place and this works fine.
My customer is requesting a Sync Webservice call. I am trying to
determine the best
way to implement this.
I thought I would have the Sync call to enter a sleep state and upon
waking check a
ArrayList that was populated at the completion of the processing. If
there is a doc then
return it, otherwise sleep.
Any thought would greatly be appreciated.
Dave