Dan Sirbu wrote:
No - they are not EE components. They are plain java classes:
public class MyTestClass{
...
@EJB or @EJB(lookup) or @EJB(mappedName) - does not work - jndi lookup yes
private ILcExample lc;
......
}
Ok yeah, then as I mentioned above, per spec those classes are not elligible for injection (only EE components). The JNDI look up works because the classes are sharing the EE context of the component that calls them.