1 Reply Latest reply on Feb 16, 2003 7:58 PM by Adrian Brock

    use of java:comp/env within a single .ear

    Andy Fyfe Newbie

      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?