3 Replies Latest reply on Jan 21, 2010 7:49 PM by pmuir

    Weld and EJB 3.0

    galet

      Is it possible to integrate Weld into EJB modules that run in the EJB 3.0 container (GlassFish v2, OpenEJB 3.1.2 etc.)? I couldn't find anything on that topic over the net.


      I have found the org.jboss.weld.ejb.SessionBeanInterceptor, but I guess it won't do the trick. If there is no ready-to-use solution, would that be hard to create one?


        • 1. Re: Weld and EJB 3.0
          nickarls

          What are you trying to do? Something more than what the specs say with The container performs dependency injection on all session and message-driven bean instances, even those which are not contextual instances?

          • 2. Re: Weld and EJB 3.0
            galet

            We use EJB only because of JAX-WS web services. A lot of dependencies of those EJBs are not EJBs and are not managed by any container. I was able to integrate Guice into this with a simple Interceptor that performs the injection. I am looking for a similar solution with the Weld.

            • 3. Re: Weld and EJB 3.0
              pmuir

              You could do this with an EJB interceptor for sure - take a look at wiki://87488