Giacomo Pati a écrit :
>
> Quoting Carsten Ziegeler <[EMAIL PROTECTED]>:
>
> > 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]