1 Reply Latest reply on May 18, 2006 3:26 PM by edx

    Entity Bean not bound

    edx

      Hello,
      I am fighting (hope) with newbie problem.
      My small application has the session bean and the entity bean that is to be accessed from the session bean. Both beans are deployed on Jboss 4 (single AS) as conformant to EJB 2.1 specification. They have home and remote interfaces only.
      In the session bean (let's say in method init) the context lookup for entity bean instance is failed due to

      MyEntityBean not bound
      .
      Note that the same entity bean is visible from servlet module.

      Is there any specific requirements for BMP/CMP entity beans to be visible from the EJB container as well?



        • 1. Re: Entity Bean not bound
          edx

          Solved,
          tried to do context.lookup("ejb/MyEntity") instead of context.lookup("java:comp/env/ejb/MyEntity") and it works!

          Edward