..
>Is there a way to trap kill signals in java applications? when an
>external kill signal is sent to a java process, how can we trap the
>signal. i want to use this handler to gracefully close the application
Runtime.addShutdownHook(java.lang.Thread)
HTH

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Gordon Beaton - 05 Jun 2007 19:44 GMT
> .
>>Is there a way to trap kill signals in java applications? when an
[quoted text clipped - 3 lines]
>
> Runtime.addShutdownHook(java.lang.Thread)
However if the OP really means SIGKILL (9) on a Unix (-like) system,
then no process can trap that specific signal, regardless of
programming language.
/gordon
--
sai krishna - 07 Jun 2007 05:40 GMT
> > .
> >>Is there a way to trap kill signals in java applications? when an
[quoted text clipped - 11 lines]
>
> --
Thanks you all for your replies