8.8.2 ServletContextListener

The ServletContextListener can be used for the PortletContext. This listener contains contextInitialized and contextDestroyed methods. An object of type ServletContextEvent is passed into the initialized and destroyed methods. From this object you can get access to the ServletContext. The contextInitialized method will be called when the PortletContext is created and contextDestroyed will be call when the PortletContext is destroyed.


Redbooks
ibm.com/redbooks