3 Replies Latest reply on Apr 13, 2011 11:06 AM by Ales Justin

    Getting BeanManager from ServletContext with Weld 1.1.0

    Christian Kaltepoth Newbie

      Hi there,


      I just tried to upgrade one of our applications from Weld 1.0.1 to 1.1.0. It worked fine except for one minor problem. It seems like Weld 1.1.0 doesn't store the BeanManager in the ServletContext anymore. Is there a reason why this feature was removed?


      I use this code which worked fine in Weld 1.0.1:


      servletContext.getAttribute("javax.enterprise.inject.spi.BeanManager");



      It seems to got removed while working on WELD-679. Any ideas?


      Thanks


      Christian