Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6312

Injection with @EJB is not working as expected with CDI (REST) beans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR7
    • 7.1.0.DR6
    • CDI / Weld, EJB
    • None

      The injection with @EJB should work the same way in a Rest service (CDI Bean) as it does in a Servlet.

      @EJB(lookup = "ejb:jboss-ejb-multi-server-app-one/ejb/AppOneBean!org.jboss.as.quickstarts.ejb.multi.server.app.AppOne")
      is not working correct if used in a CDI Bean in the reproducer example.

      Reproducer can be found here:
      git@github.com:wfink/jboss-eap-quickstarts.git
      BRANCH: 6.4.x_ejb-multi-server_reproducerEJB-injection
      SubProject: ejb-multi-server (used only a part of it to have a web-app and a ejb-app)
      see ejb-multi-server/README-reproducerEJB-injection

            tremes1@redhat.com Tomas Remes
            tremes1@redhat.com Tomas Remes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: