org.glite.data.common.helpers
Class ServiceContextListener
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceContextListener
public ServiceContextListener()
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