You can initialize the Axis servlet itself by overriding the axis servlet class and implementing an init method. Alternatively, you can init a specific service by placing a public void init(ServiceContext serviceContext) method in your service skeleton class. You can control how often the service's init() method is called by declaring a scope for the service in your services.xml file. For example,declaring the scope=application will cause the init() method to be called once on startup, setting scope=session will call it once per client session.

On 7/26/06, xu cai <[EMAIL PROTECTED]> wrote:
I need initilize something before my web service come to work,  such as startup some thread, create some db connections.
How can I do that in Axis ? can I just deploy a servlet to axis ? 

--
- xucai

Reply via email to