| java.lang.Object simple.webapp.AppCtxListener
contextDestroyed | public void contextDestroyed(ServletContextEvent evt)(Code) | | ### Method from ServletContextListener ###
Called when a Web application is about to be shut down
(i.e. on Web server shutdown or when a context is removed or reloaded).
Request handling will be stopped before this method is called.
For example, the database connections can be closed here.
|
contextInitialized | public void contextInitialized(ServletContextEvent evt)(Code) | | ### Method from ServletContextListener ###
Called when a Web application is first ready to process requests
(i.e. on Web server startup and when a context is added or reloaded).
For example, here might be database connections established
and added to the servlet context attributes.
|
|
|