org.glite.data.common.helpers
Class ServiceContextListener

java.lang.Object
  extended byorg.glite.data.common.helpers.ServiceContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class ServiceContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

ServletContextListener implementation to properly set up and shut down the database connections of the service.

Example configuration in web.xml:

   <listener>
     <listener-class>
       org.edg.data.common.helpers.ServiceContextListener
     </listener-class>
   </listener>
 

Author:
Frohner Akos

Constructor Summary
ServiceContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContextListener

public ServiceContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener