By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,838 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,838 IT Pros & Developers. It's quick & easy.

Sync Webservice call that MUST wait for Distributed System to process

P: n/a

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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.