glassfish
  1. glassfish
  2. GLASSFISH-11366

java:comp/BeanManager not bound in embedded mode

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: V3
    • Fix Version/s: 3.1_ms07
    • Component/s: cdi
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      11,366

      Description

      When starting an embedded container the java:comp/BeanManager entry is not bound, while I see WELD
      starting. This makes it impossible to get references to non EJB injectable classes.

      I start the container as follows:
      EJBContainer.createEJBContainer();

        Activity

        Hide
        locrianmode added a comment -
            • Issue 11366 has been confirmed by votes. ***
        Show
        locrianmode added a comment - Issue 11366 has been confirmed by votes. ***
        Hide
        rogerk added a comment -

        3.1

        Show
        rogerk added a comment - 3.1
        Hide
        rogerk added a comment -

        assign to Siva

        Show
        rogerk added a comment - assign to Siva
        Hide
        Sivakumar Thyagarajan added a comment -

        Targetting for MS7

        Show
        Sivakumar Thyagarajan added a comment - Targetting for MS7
        Hide
        jitu added a comment -

        Assigning this to myself.

        Can you add a sample test case here(want to see where exactly your application
        accesses java:comp/BeanManager). If java:comp/BeanManager is not accessed in Java
        EE component, then there is no way to give the right BeanManager object.

        Show
        jitu added a comment - Assigning this to myself. Can you add a sample test case here(want to see where exactly your application accesses java:comp/BeanManager). If java:comp/BeanManager is not accessed in Java EE component, then there is no way to give the right BeanManager object.
        Hide
        jitu added a comment -

        Also verified that, java:comp/BeanManager is available in Java EE component when
        EJB container is created in an embedded fashion. Hence marking it as invalid.

        Show
        jitu added a comment - Also verified that, java:comp/BeanManager is available in Java EE component when EJB container is created in an embedded fashion. Hence marking it as invalid.

          People

          • Assignee:
            jitu
            Reporter:
            paulbakker
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: