Hi, I am using the following code to get hold of an EJB(Entity Bean) in another EJB.But it gives me an exception. Can anyone help. InitialContext initCtx = new InitialContext(); Context ctx = initCtx.lookup("java:comp/env/ejb"); ABCHome abcHome = (ABCHome) ctx.lookup("ABC"); I get a javax.naming.NameNotFoundException: Name "comp:java/env/ejb" not found in context ("java:comp") Thanks Praveen
posted 14 years ago
Have you added an ejb-ref element for the ABC bean in your calling bean's deployment descriptor?