I have a .ear file that contains a .war and an EJB (stateless session with a remote interface) .jar. The .war can reference the the EJB using the jndi name "ejb/Name", but not using "java:comp/env/ejb/Name".
I've read in other postings that java: is restricted to a single VM, but I assume that isn't a problem here.
The issue comes up because I've been looking at Rod Johnson's framework, and it automatically adds the "java:comp/env" prefix.
Is the framework wrong to add the prefix? Or is there something else that I'm doing wrong?
Have you specified the <ejb-ref> in your web.xml?