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.
tried to do context.lookup("ejb/MyEntity") instead of context.lookup("java:comp/env/ejb/MyEntity") and it works!