Hello,

I've just created and deployed a simple web service using Axis.

Each time I call the web service, a new instance of the class
implementing my web service is created.

Is there any way of controlling this behaviour ? I mean, is it possible
to have one instance per request (current behaviour), or one instance per 
server, a pool of instances ... 

My web service needs to access a database. So, I would like to maintain
a persistent connection to the database. I could use a singleton or 
a static member but it would take some time when processing the first 
request. Is is possible to tell Axis to pre-load some classes when it 
starts up to avoid latency with the first request ?  
 
Thank you for your help,

Tom.


Reply via email to