com.ora.jsp.servlets
Class ResourceManagerListener2

java.lang.Object
  extended bycom.ora.jsp.servlets.ResourceManagerListener2
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

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

This class manages the DataSource resource for a fictious application, creating an Oracle DataSource with pooling capabilities and makes it available when the application starts and removes it when the application is shut down.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  oracle.jdbc.pool.OracleConnectionCacheImpl ds
           
 
Constructor Summary
ResourceManagerListener2()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
           
 void contextInitialized(javax.servlet.ServletContextEvent sce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

private oracle.jdbc.pool.OracleConnectionCacheImpl ds
Constructor Detail

ResourceManagerListener2

public ResourceManagerListener2()
Method Detail

contextInitialized

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

contextDestroyed

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