aspose file tools*
The moose likes Web Services and the fly likes Web service method synchronized or not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web service method synchronized or not" Watch "Web service method synchronized or not" New topic
Author

Web service method synchronized or not

bujin wang
Ranch Hand

Joined: Jun 21, 2003
Posts: 48
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

Joined: Nov 12, 2001
Posts: 906
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)


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
bujin wang
Ranch Hand

Joined: Jun 21, 2003
Posts: 48
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

Joined: Nov 12, 2001
Posts: 906
Sorry, I don't understand your question
Please explain further
bujin wang
Ranch Hand

Joined: Jun 21, 2003
Posts: 48
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web service method synchronized or not