It depends. Look in the user guide for 'scope'. This has 3 values (something like 'request', 'session' and 'application'). The first indicates that the object carrying out the request has the same lifetime as the request in the server. The second indicates the lifetime extends over the session. The third indicates that the object has a lifetime extending from first use (or preloading at Tomcat startup) to Tomcat shutdown or undeployment, whichever comes first. You set the scope in the deployment configuration for your service.

Jeff

John M. Gabriele wrote:

My web service is just one class.

When I start up Tomcat, does an instance of my MyService
get created and just stay there, instantiated, between
uses of the service, as long as Tomcat is running? Or,
for each (remote) call to one of its instance methods, does
an instance get created, the method called, and the object
destroyed?

Is this what's alluded to in the wiki page:
http://wiki.apache.org/ws/FrontPage/Axis/SessionSupport
?



                
__________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html

Reply via email to