Class BeanManagerResourceBindingListener

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

    public class BeanManagerResourceBindingListener
    extends Object
    implements javax.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​(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