@EJB(name="fooejbref", beanInterface=FooLocal.class)
Given your above injection example inside BarBean, you should be able to look up the local ejb from a POJO that is in the same naming context as BarBean. Of course, BarBean is in the same ejb-jar or EAR as fooejb.
InitialContext ic = new InitialContext();
FooLocal foo = (FooLocal) ic.lookup("java:comp/env/fooejbref");
-cheng
[Message sent by forum member 'cf126330' (cf126330)]
http://forums.java.net/jive/thread.jspa?messageID=243171