Re: AXIS2: shutdown mechanism

2006-10-13 Thread Chuan Guo

Hi Deepal,
Thank you very much!


You can specify the service life cycle impl as shown below;



This is sample service 3



In version 1 we should use this to declare the service class
 locked="false">org.apachecon.us.sample.ServiceLifeCycleImpl


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AXIS2: shutdown mechanism

2006-10-12 Thread Deepal Jayasinghe
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;



This is sample service 3



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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AXIS2: shutdown mechanism

2006-10-12 Thread Chuan Guo

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[axis2] Shutdown mechanism?

2005-12-07 Thread Antony Grinyer
Hi,
 
Is there a shutdown mechanism as part of axis2 that can be used to close 
resources if, for example, the servlet container such as Tomcat, containing oru 
axis2 webapp is shutdown unexpectedly? We'd like to use something like the 
ServletContextListener to listen if a shutdown occurs so we can close critical 
resources.
 
Any help/advice gratefully received.
 
Thanks,
Ant
CSW Group Ltd.
 
<>