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