You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chuan Guo <ch...@optel-informatik.de> on 2006/10/12 15:04:11 UTC
AXIS2: shutdown mechanism
Hi,
i would like to know, when the Container like Tomcat is shutdown,
could the concrete service of axis2 be informed? With this man can close
the critical resources.
Otherwise the data in memory will lost. (for performance, a cache is
normal).
Thanks for every Tips!
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: AXIS2: shutdown mechanism
Posted by Chuan Guo <ch...@optel-informatik.de>.
Hi Deepal,
Thank you very much!
> You can specify the service life cycle impl as shown below;
>
> <service name="SampleService3"
> class="org.apachecon.us.sample.ServiceLifeCycleImpl">
> <description>
> This is sample service 3
> </description>
> </service>
In version 1 we should use this to declare the service class
<parameter name="ServiceClass"
locked="false">org.apachecon.us.sample.ServiceLifeCycleImpl</parameter>
After trying, it seems that both of these should be used, is that?
And it seems also, man must use the java 1.5.
I tested it in java 1.4.2 and got Error when AXIS start to deployment.
or what should I do additional with java 1.4?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: AXIS2: shutdown mechanism
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Yes , it will :)
But you need to implement an interface called
org.apache.axis2.engine.ServiceLifeCycle and specify the name in
services.xml.Once you have that in your services.xml that interface impl
will be informed when the system start up time and shutdown time.
You can specify the service life cycle impl as shown below;
<service name="SampleService3"
class="org.apachecon.us.sample.ServiceLifeCycleImpl">
<description>
This is sample service 3
</description>
</service>
P.S - This will be only available in nightly build and Axis2 1.1
> Hi,
> i would like to know, when the Container like Tomcat is shutdown,
> could the concrete service of axis2 be informed? With this man can close
> the critical resources.
> Otherwise the data in memory will lost. (for performance, a cache is
> normal).
>
> Thanks for every Tips!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org