4 Replies Latest reply on Mar 13, 2014 4:33 PM by Joshua Davis

    Weld & EJBs (3.1)

    Roger Lee Apprentice

      I have a live SEAM 2.3 project which uses RichFaces and connects to EJBs (3.1) & JPA on the server side running on JBoss AS 6.1. I have been having problems trying to port it to WildFly 8.0 Final and am considering CDI and am looking at Weld as it's included in WildFly/


      Does Weld 2.1.2 work with EJBs? Looking in Ken Finningan's book "JBoss Weld CDI for Java Platform" it says:


      "A bean type can be a class or interface that is visible to clients that wish to inject it. For instance, an EJB session bean implementation is not visible to clients, but its @local interface is visible"


      but then says:-


      "EJB remote interfaces are not bean types of a Session Bean, and therefore cannot be injected directly. They must be injected by defining a resource".


      In my Seam Application from the Web Page (XHTML) I can directly call an EJB and inject say the selected value from a drop down list, which has been populated previously with the @Factory annotation in my EJB.


      Is this all possible in CDI/Weld