I'm sucessfully getting session ebj from a
servlet with...
Context ctx = new InitialContext();
Object obj = ctx.lookup(
java:comp/env/ejb/EmployeeProcessorHome);
...and I can do the same for my entity
ejb Object obj = ctx.lookup(java:comp/env/ejb/EmployeeHome);
But when I try and get hold of the entity ejb from within the session ejb I get the error...
javax.naming.NameNotFoundException: Name comp/env/ejb not found in context "java:".
I've read that you access an ejb from another ejb in the same way that a client would, so I can't work out what's going wrong here.
Any ideas?
TIA
Dave