What is the default scope in Axis2?

At 01:35 AM 10/9/2007, Deepal jayasinghe wrote:
Hi ,

If you deploy the service in application scope then there will be only
one service instance , however if you deploy the service in other scope
there will be a number of service instances. For example if you deploy
the service in request scope then there will be service instance for
each and every request.

Thanks
Deepal
> Hi,everyone,
>     I have got a question about the web service class,for example,I
> got the following class that provides the web service of getting the
> price of the potato and tomato:
>
> import statements;
> public class Service {
>       /**
>       * The soap response that will return to the client.
>       */
>       private OMElement response = null;
>
>       public OMElement getPotatoPrice(OMElement soap){
>               some operations;
>               return response;
>       }
>       public OMElement getTomatoPrice(OMElement soap){
>               some operations;
>               return response;
>       }
> }
>
> Here,I did some operations,etc,database query,and then return the
> constructed response object.If there are multiple client call the web
> service at the same time,is it safe to declare the response object as
> the Service class's member variable?Does the axis2 just create one
> Service instance and maintain it in the whole service life cycle?
>
> any advice will be appreciated!
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to