tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Terminating or suspending an application if a "on start up" servlet throws an exception?
Date Mon, 19 Jan 2004 16:51:00 GMT

Howdy,
Not from one servlet: it'll just mark that servlet as unavailable (which
is correct behavior).  If you throw the runtime exception from a servlet
context listener, the context will be marked as unavailable.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Mike Curwen [mailto:mikec@gb-im.com]
>Sent: Monday, January 19, 2004 9:50 AM
>To: 'Tomcat Users List'; a.beech@bigpond.net.au
>Subject: RE: Terminating or suspending an application if a "on start
up"
>servlet throws an exception?
>
>I think if you throw a RuntimException, then Tomcat will mark the app
as
>unavailable.
>
>
>> -----Original Message-----
>> From: Adrian Beech [mailto:a.beech@bigpond.net.au]
>> Sent: Sunday, January 18, 2004 5:35 AM
>> To: tomcat-user@jakarta.apache.org
>> Subject: Terminating or suspending an application if a "on
>> start up" servlet throws an exception?
>>
>>
>> G'day,
>>
>> Is it possible to have Tomcat 4.1.x terminate or suspend
>> access to an application if a servlet which is fired at start
>> up throws an exception? For example, we have two servlets
>> which are loaded on start up.  The first one sets up the
>> database connection pool and the second one does various
>> other application initialisation type actions.  If either one
>> throws an exception then I'd like the application to be unavailable.
>>
>> Can this be done?  If so then how?
>>
>> AB
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message