The scope attribute in the deployment descriptor specifies whether the scope is request, session or application. For request scope, a separate instance of the service class is created for each request, so there is no synchronization issue for instance methods, but there can be for class (static) methods.
There is also session scope, in which one instance of the service class is created per session, and application scope, in which one instance of the service class is created to handle all requests. The latter is most common. In that case, one must be very conscious of synchronization. Most SOAP calls are implemented in a stateless manner, and synchronization is not required, but if you have instance variables, etc., that are accessed by multiple threads concurrently, you must be worried about synchronization. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Bogdan Mihaila" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, October 02, 2005 1:02 PM Subject: Re: soap with proxy > I solved the problem... I was trying to connect to localhost through proxy > and it did not work; it returned an http error ("Invalid URL"). But when I > tried to connect to another host in the local network, it worked. The proxy > didn't need any authentication. > > But I have another question: When multiple clients try to access the same > file on the server, do I need to need the keyword "syncronize" next to the > method who is accesing it, in order to syncronize access? Who is responsible > for the resource sharing (the client or the server)? > > Thank you very much for answering. > > Scott Nichol <[EMAIL PROTECTED]> wrote: > Does your proxy require authentication? If so, you must provide username and > password as well. > > Your best clue would be to capture the network traffic (Network Monitor or > tcpdump depending on the client platform) to see what the HTML response says. > > Scott Nichol > > Do not send e-mail directly to this e-mail address, > because it is filtered to accept only mail from > specific mail lists. > ----- Original Message ----- > From: "Bogdan Mihaila" > To: > Sent: Saturday, September 24, 2005 5:14 AM > Subject: soap with proxy > > > > Hi! > > > > I'm a newbie in using Apache SOAP, and I have the following scenario: > > > > I have a SOAP client and a server, and I need the client to connect to the > > server through a proxy. Without proxy, it works fine. I set the proxy > > parameters (hostname and port) but I get the following error: > > Unsupported response content type "text/html", must be: "text/xml". > > The proxy is running Apache, not Tomcat. > > > > Any help would be greatly appreciated. > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > --------------------------------- > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort.
