cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: AW: [C2]: Testing for beta2
Date Thu, 19 Jul 2001 10:41:50 GMT


Giacomo Pati a écrit :
> 
> Quoting Carsten Ziegeler <cziegeler@sundn.de>:
> 
> > Is this trick still required? I thought that we implement
> > now the destroy() method of the servlet, so everything should
> > be cleaned up fine.
> 
> I don't think a ctrl-C will end up in the destroy method for some servlet
> implementation (can this be captured)?

Yes, with JDK 1.3 : you can use Runtime.addShutdownHook() to register
some threads that are executed when the VM quits (ctrl-C, shutdown,
etc). But you cannot capture a kill -9.

I don't know is some servlet engines use this.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message