Re: Graceful exit from AppListener

2008-07-22 Thread Raymond Kroeker
Hi Ken, I use a very similar approach in my applications; and my answer was to subclass Error with ConfigurationError and throw it when I realize I cannot initialize completely. This will prevent your application from servicing requests; as well as play nicely within the container (tomcat). Ra

Graceful exit from AppListener

2008-07-22 Thread Ken Bowen
Hi All, My app does some significant initialization in the class AppListener implements ServletContextListener, including processing the application configuration. When it receives an inconsistent, unrecoverable configuration, what is the best way to exit from contextInitialized(...) and