Wednesday, July 24, 2002 03:33 AM
ServletContextListener implementations will receive notifications for contextIntialized and contextDestroyed. These events are NOT associated with any "active" client sessions and hence cannot be shown as an error message to any client browser.
When contextInitialized() is called, there cannot be any clients "already" using the web app. (the web app is just starting up)
When contextDestroyed() is called, any active client sessions have already been destroyed (as per servlet spec sessions will be invalidated and any session listeners notified before context is destroyed). So again no active clients to receive an error message.