That's it! I have a single Tomcat/JVM instance but multiple applications 
running on it.
In fact with System.exit(1) Tomcat is not completely stopped; it is still 
running but it hangs. I have to kill the process to terminate it.

So, how to shut down properly the current application from a 'listener' leaving 
the other webapps deployed into Tomcat to continue their business?

I was unsuccessful looking for some source code to do so.

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: mardi 9 novembre 2010 20:52
To: Tomcat Users List
Subject: Re: Shutting down one instance of tomcat 6 from a listener

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick,

On 11/9/2010 11:36 AM, Patrick Sauts wrote:
> I'm sorry I'm French.

No problem: we can work around language difficulties. More explanation usually 
helps.

> Multiple cores, maybe?

The number of CPU cores should not affect the number of instances that you have.

> As when you use the manager to deploy different web applications, 
> several war.

So, it sounds like you have a single Tomcat/JVM instance but multiple 
applications running on it. You want to have one of your webapps check some 
configuration and gracefully stop if there is a problem, leaving the other 
webapps deployed into Tomcat to continue their business.

If that's the case, then calling System.exit will certainly cause Tomcat to 
become "unstable", where "unstable" means completely stopped.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzZpk8ACgkQ9CaO5/Lv0PDIzwCeL7AFHpsLKcpNbRPprDxnPKRF
yMUAoJSOfLBrIw0mvW/HlbRyKM7bl5Nj
=olUO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to