The Axis servlet loads web services on request, depending on the scope. As you have session scope, the web service class will be instantiated once for each session. So the first call, in that session, will take longer than subsequent calls.

I'm not aware of any configuration that will cause Axis to instantiate the class ahead of time. With application scope, you may be able to load the web service from another servlet (other than the Axis servlet) in the application, though I'm not certain of this.

Tony


Hi all axis user,
I would like to know what happens when we call the first time a service.

To be easily understood, here is an example :

I've got one client C1.
One service WS1 deployed on the server  S1.

I start running my  server :
S1 ->>> Application axis (AXIS) initialized...

Then, C1 call the method M of the service WS1.
If the server has just started, the time between the call by C1 to M and
the "redirection" by the server to the method M is around 9sec on my
machine.

This time for every other calls  is  less than 10ms.

So what happen after the first call?
Is there a way to avoid the difference of time ?

My web service is deployed whit those parameters :

<provider="java:RPC">
 <parameter name="scope" value="session"/>


Karim


Reply via email to