You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mayur Shetye <ma...@yahoo.com> on 2004/09/22 00:35:26 UTC

Shared resource

hi

   I having a serverside program which accesses a
shared resource, a UNIX command which shouldnt be
invoked again till it has returned. this command is
going to be called by a Java program which shall be an
implementation of a webservice (server end). Given the
asynchronous nature of service calls I have some
queries .

1. Are webservices multithreaded by default ? OR is a
new instance created everytime the webservce is
invoked by the client. If it is a thread then I might
be able to use locks .

2. IF it is not multithreaded, how do I restrict these
programs (processes) accessing my command. Is using a
static varible in the code and changing the staus the
only way to do this ?

Thanks in advance
Mayur Shetye


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail