On 5/15/06, netsql <[EMAIL PROTECTED]> wrote:
So I am colleting messages. How do I exit the java app nicely? Like if linux singals it's going down, or I want to shut it down (kill, or similar). I'd have to clean up some db connections, etc.
There are two choices: 1. Use a shutdown hook. 2. Create a shutdown port and wait for the signal (TCP/IP message from localhost or certain hosts). HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP key fingerprints: * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
