Class JdbcServletContextListener

java.lang.Object
org.apereo.cas.JdbcServletContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

@WebListener public class JdbcServletContextListener extends Object implements jakarta.servlet.ServletContextListener
This is JdbcServletContextListener that properly deregisters JDBC drivers in this context's ClassLoader.

Note that Slf4j logging does not work in contextDestroyed, likely due to the fact that the logging framework as shutdown and its context is destroyed sooner than this listener. We need to stick to old-school logging method.

Since:
6.2.0
  • Constructor Details

    • JdbcServletContextListener

      public JdbcServletContextListener()
  • Method Details

    • contextDestroyed

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