If you are on Solaris, try asadmin create-service command and make SMF take care of
"watchdogging" the process.
You can create services on other platforms as well. See documentation.
Thanks,
Kedar
[Message sent by forum member 'km' (km)]
http://forums.java.net/jive/thread.jspa?messageID=291700