[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soap-user
Subject:    RE: Static Variables in a soap Object
From:       "Yoann Pannier" <yop () fluxus ! net>
Date:       2001-02-27 14:25:52
[Download RAW message or body]

from what i have seen in SOAP source code, it depends on the scope you specified in \
your DeploymentDescriptor.xml for your SOAP service provider. You can specify an \
'Application', a 'Session' or a 'Request' scope.

if you specified 'Application', then your object is instanciated only once, stored \
and reused for every request you do.

if you use a Request scope, instances are not stored at all and you will get a fresh \
object for each request.

note: if you make a change in your deployment descriptor file, you have to re-deploy \
your service.

yop

> -----Original Message-----
> From: Johan Basson [mailto:JohanB@ariel.co.za]
> Sent: Tuesday, February 27, 2001 12:58 PM
> To: soap-user@xml.apache.org
> Subject: Static Variables in a soap Object
> 
> [...]
> 
> 1.When a object is instantiated inside the soap server,  when is this object
> destroyed in terms of
> the soap handler?
> 2.Does soap instantiate more objects for each request or does it use the
> same object all over again?
> 
> [...]


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic