H
harry
I have several (local) stateless session EJB's.
From my app I can get a reference to one using something like -
home = (EJBLocalHome) context.lookup("java:comp/env/ejb/ejb1");
but trying to get a reference to another one from a method within ejb1 I
have to use -
home = (EJBLocalHome) context.lookup("ejb/ejb2");
without the "java:comp/env/" bit otherwise I get a NamingException thrown
I am completely stumped as to why this should happen - any ideas?
thanks
harry
From my app I can get a reference to one using something like -
home = (EJBLocalHome) context.lookup("java:comp/env/ejb/ejb1");
but trying to get a reference to another one from a method within ejb1 I
have to use -
home = (EJBLocalHome) context.lookup("ejb/ejb2");
without the "java:comp/env/" bit otherwise I get a NamingException thrown
I am completely stumped as to why this should happen - any ideas?
thanks
harry