ServletContextListener implementation to handle connection pool shutdown.
The JNDI name of the configured DBPoolDataSource should be assigned as a
context parameter for the web application.
For example, typically these lines might be added to
web.xml:
<listener>
<listener-class>snaq.db.DBPoolServletContextListener</listener-class>
</listener>
<context-param>
<param-name>name</param-name>
<param-value>jdbc/pool-ds</param-value>
</context-param>
in the case that the DataSource has the JNDI name of
jdbc/pool-ds.