Class ServletContextListenerDbPool

java.lang.Object
javatapas.servlet.ServletContextListenerDbPool
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class ServletContextListenerDbPool
extends Object
implements javax.servlet.ServletContextListener
Load a Database Connection Pool into the Servlet Context so that it can be used across any servlet.

Published at https://www.javatapas.com/servlet/Java-Servlet-Context-Listener-Db-Pool.html

Javadoc at https://www.javatapas.com/docs/javatapas/servlet/ServletContextListenerDbPool.html
Version:
2021-06-10
Author:
Kodiak Brown
  • Field Details

    • servletContext

      javax.servlet.ServletContext servletContext
  • Constructor Details

    • ServletContextListenerDbPool

      public ServletContextListenerDbPool()
  • Method Details

    • contextInitialized

      public void contextInitialized​(javax.servlet.ServletContextEvent contextEvent)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

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