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 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 this "peacefully".
>
> You should check out the code for the Bootstrap class:
>
>
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/java/org/apache/catalina/startup/Bootstrap.java
>
> It calls o.a.c.s.Catalina.stopServer which you can read here:
>
>
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/java/org/apache/catalina/startup/Catalina.java
>
> Basically, it makes a localhost socket connection and send the
> "shutdown" command to the server. You could do this yourself to initiate
> a graceful server shutdown.
>

I will do that, thank you Chris.

>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkj4/qkACgkQ9CaO5/Lv0PCA7wCgouK/jWSeZODHtufCB6prywDS
> v+kAoK3bBmoq86awNLxhw3SMhmBgjvmg
> =98T3
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

Reply via email to