C
Chris Berg
Has anyone else had this problem:
Running a JAVA app as a system service on Windows, I have to add -Xrs
to the command-line to avoid the app to shut down when no user is
logged in. But this also prevents any shutdown hooks to run when the
system shuts down, because -Xrs not only inhibits CTRL_LOGOFF_EVENT,
but also CTRL_C_EVENT, CTRL_CLOSE_EVENT, and CTRL_SHUTDOWN_EVENT, the
last of which should be catched to enable the shutdown hook.
I would like a finer-grain -Xrs option. Until SUN gives me that (maybe
in 1.5?), are there any other ways around the problem?
Chris
Running a JAVA app as a system service on Windows, I have to add -Xrs
to the command-line to avoid the app to shut down when no user is
logged in. But this also prevents any shutdown hooks to run when the
system shuts down, because -Xrs not only inhibits CTRL_LOGOFF_EVENT,
but also CTRL_C_EVENT, CTRL_CLOSE_EVENT, and CTRL_SHUTDOWN_EVENT, the
last of which should be catched to enable the shutdown hook.
I would like a finer-grain -Xrs option. Until SUN gives me that (maybe
in 1.5?), are there any other ways around the problem?
Chris