tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Shutting down one instance of tomcat 6 from a listener
Date Tue, 16 Nov 2010 12:33:38 GMT
On 16/11/2010 10:46, Patrick Sauts wrote:
> It works just fine doing it from the ServletContextListener.
> Thx a lot.
> 
> But I was wondering how to do it outside of the application itself?

Assuming you can tell if the app is in a fault condition, you can use
JMX to start, stop & reload apps.


p


> Patrick Sauts.
> 
> -----Original Message-----
> From: Pid [mailto:pid@pidster.com] 
> Sent: lundi 15 novembre 2010 12:44
> To: Tomcat Users List
> Subject: Re: Shutting down one instance of tomcat 6 from a listener
> 
> On 15/11/2010 09:37, Patrick Sauts wrote:
>> So, how to shut down properly the current application from a 'listener' leaving the
other webapps deployed into Tomcat to continue their business?
> 
> It depends on what the problem actually is, and when it occurs.
> 
> If you do all of your initialisation in a ServletContextListener and throw an exception
on fail, then the context won't start up.
> 
> This is not the same as shutting it down after a certain period of time and after a fault
condition occurs.
> 
> 
> Where is the code which is going to shut down the application?
> Presumably outside of the application itself?
> 
> 
> p
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


Mime
View raw message