My plan was to add to Server attribute of shutdownWait(or something else if someone else has a better suggestion). If greater than zero, then System.exit() would be called otherwise, do nothing. That way - we are backwards compatible.

Die in 30 seconds
<Server port="8005" shutdown="SHUTDOWN" debug="0" shutdownWait="30">

Don't Die
<Server port="8005" shutdown="SHUTDOWN" debug="0" shutdownWait="-1">
or
<Server port="8005" shutdown="SHUTDOWN" debug="0" shutdownWait="0">
or
<Server port="8005" shutdown="SHUTDOWN" debug="0">

-Tim

Craig R. McClanahan wrote:
On Mon, 10 Feb 2003, Tim Funk wrote:

Why is a kill done instead of a System.exit()?

System.exit() is absolutely the wrong answer if Tomcat is embedded into a
larger server-side application, rather than run separately in the usual
way.  At best, you would need to make this configurable somehow (with the
default to *not* run System.exit()).

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to