Class BeanManagerResourceBindingListener

  • All Implemented Interfaces:
    jakarta.servlet.ServletContextListener, EventListener

    public class BeanManagerResourceBindingListener
    extends Object
    implements jakarta.servlet.ServletContextListener
    Emulates the behavior of the naming resource binding that is typically done using configuration files in Tomcat and Jetty. This listener provides the ability to bind the BeanManager to JNDI without the need for configuration.
    Author:
    Dan Allen, Christian Sadilek
    • Constructor Detail

      • BeanManagerResourceBindingListener

        public BeanManagerResourceBindingListener()
    • Method Detail

      • contextInitialized

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

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