Programmatic instruct Tomcat to shutdown

2008-10-15 Thread Maxim Veksler
Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by issuing a shutdown instruction to the container, but I can't find how to do t

Re: Programmatic instruct Tomcat to shutdown

2008-10-15 Thread Filip Hanik - Dev Lists
you mean like java.lang.System.exit(1); Filip Maxim Veksler wrote: Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by iss

Re: Programmatic instruct Tomcat to shutdown

2008-10-16 Thread Maxim Veksler
On Wed, Oct 15, 2008 at 21:07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]>wrote: > you mean like > > java.lang.System.exit(1); > > Not quite. I've commented that I've tried System.exit(1); and it's fails because I have threads that aren't going down by this instruction. The need the Servlet notif

Re: Programmatic instruct Tomcat to shutdown

2008-10-16 Thread Leon Rosenberg
On Thu, Oct 16, 2008 at 1:31 PM, Maxim Veksler <[EMAIL PROTECTED]> wrote: > On Wed, Oct 15, 2008 at 21:07, Filip Hanik - Dev Lists > <[EMAIL PROTECTED]>wrote: > >> you mean like >> >> java.lang.System.exit(1); >> >> > Not quite. > > I've commented that I've tried System.exit(1); and it's fails beca

Re: Programmatic instruct Tomcat to shutdown

2008-10-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maxim, Maxim Veksler wrote: > I would like to forcefully cause my application server to fail once I > discover a situation I can't recover from. We have HA that should handle the > situation from there. > > The best way I can see this happening is by

Re: Programmatic instruct Tomcat to shutdown

2008-10-18 Thread Maxim Veksler
On Fri, Oct 17, 2008 at 23:07, Christopher Schultz < [EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Maxim, > > Maxim Veksler wrote: > > I would like to forcefully cause my application server to fail once I > > discover a situation I can't recover from. We have HA t