(Actually posted this in EJB3 but on reflection think it's more apt in this sub-forum).
I'm still confused as to how I should properly use EJB injection within another EJB.
Say I have an EJB called MyBean. Within it I define the JNDI mapping to be:
@EJB(name = "ejb/MyBean", beanInterface = MyBeanLocal.class)
InitialContext ctx = new InitialContext(); MyBeanLocal myBeanLocal = (MyBeanLocal ) ctx.lookup("java:comp/env/ejb/MyBean");