Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4210

EJB Injection in JSF Managed Bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.4, 2.2
    • None
    • Security Level: public (Regular issues)
    • None
    • Linux antares 2.6.25-2-686 #1 SMP Fri Jun 27 03:23:20 UTC 2008 i686 GNU/Linux
      Debian
      java version "1.6.0_06"
      Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
      Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

    Description

      I've got two managed beans in a JSF 1.2 webapp. Both beans are quite equal. I try to inject a stateless session bean (EJB3) into the managed beans.

      @EJB(name = "java:comp/env/ejb/CredentialData")
      private CredentialData credentialData;

      In the first managed bean the EJB is injected correctly in CredentialDataController. The second bean with exactly the same injection code does not get the EJB inCredentialTableBean. There is no error but at runtime credentialData is null.

      Attachments

        1. GERONIMO-4210.patch
          14 kB
          YunFeng Ma
        2. ltg3.tar.gz
          12 kB
          Matthias Berndt

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            arkain Matthias Berndt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: