tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janek Bogucki <jane...@yahoo.co.uk>
Subject Re: STARTUP.SH DOESN'T WORKS FINE
Date Thu, 15 Nov 2001 00:13:01 GMT
 --- Tom Drake <rtd@pobox.com> wrote: > 
> Effectively the process is killed. I think we are
> saying the same thing.
> As far as I know, there's no way to receive SIGHUP
> (or any other Unix
> signal)
> in your java code anyway.
> 
It is possible to register a shutdown hook which is
executed when the JVM is shutdown

http://developer.java.sun.com/developer/TechTips/2000/tt0711.html

JBoss uses this (AFAIK) in order to do an orderly
shutdown when ctrl-c in pressed in the console it is
running.

-Janek

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message