ServletContextListener: how to suspend web app on error 2004-01-08 - By Justin Ruthenbeck
Back
Seems like a simple question, can't seem to find the answer...
If an error occurs in the #contextInitialized() method of an object that implements ServletContextListener, how can I suspend the web application so that it is unavailable for use by clients?
Specifically, I have a ServletContextListener that needs to be run at application startup. If any one of many errors occur, I want to notify the appropriate people (this I can do) and make the entire webapp unavailable (this I can't figure out).
Any help is appreciated. I have a feeling this is obvious and I'm just missing something.
Cheers, justin
__ ____ ____ ____ ____ ____ ____ ____ ____ ___ Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php __ ____ ____ ____ ____ ____ ____ ____ ____ ___
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|