tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lefevre <>
Subject Vetoing the start of a webapp
Date Tue, 01 Mar 2011 13:59:21 GMT
This is a follow-up on an earlier thread on killing
a servlet at startup. To recap., this is best done
by throwing a suitable exception in its init method,
as per ยง2.3.2.1 of the servlet spec.

But what if the webapp has several servlets and you
want to abort (or undo) the loading of the whole
collection if any of the members fail to load: is
there already an accepted best practice for that?

I note that unlike the servlet the web app is not
reified in the API (AFAICT): the ServletContext is
in web app scope but it *is* not a webapp (or is
it?). Thus it doesn't look like you can control a
web app as directly as you can control a servlet.

Thanks again,

-- O.L.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message