Manage errors in the contextInitialized() method of a ServletContextListener (urgent)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   HELIGON_Sandra
Posted On:   Wednesday, July 24, 2002 01:50 AM

If the action done in the contextInitialized() method of
the ServeltContextListener can not be performed
(CORBA.COMM.FAILURE or unbale to initialize threads...), how send an error to the client browser?
If you have an example of code with an error in such method thanks a lot to post it.

Re: Manage errors in the contextInitialized() method of a ServletContextListener (urgent)

Posted By:   Gautam_Marwaha  
Posted On:   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.

About | Sitemap | Contact