Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web service method synchronized or not

 
bujin wang
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I plan to use JavaScript fromn web browser to access web service methods. The mehtod calls could take some time. Will my javascript wait until the web methods return? How do I control that?

Burt
[ August 18, 2004: Message edited by: bujin wang ]
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it will wait until the method processing of your web service ends.

But you can design some asynchronous web services patterns if you need to ( with callback or polling methods)
 
bujin wang
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know the web server method is synchronized by nature and you could implement the asychronized way. However my concern is from JavaScript side(web browser), does it allow synchronization method call?

Burt
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't understand your question
Please explain further
 
bujin wang
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Eric explained in the other group, it won't work in JavaScript. So I still need to break the JavaScript. Sorry about the duplicated post, as I want to attract the attentions from experts in different areas.

Burt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic