users@glassfish.java.net

Re: Injection of ref to EJB fails

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 Mar 2007 11:20:28 PST

Hi Jean,

There are many ways to assign a global JNDI name to an EJB and likewise many ways
to resolve an ejb-ref to a target EJB. In your first case, the Remote EJB was assigned
a specific global JNDI name but that name was not used to map the remote ejb-ref, so
it could not be resolved.

We have an EJB FAQ entry that explains how remote ejb refs are mapped to their target
EJBs :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#mappingRemoteejbdependency

A related topic is how global JNDI names are assigned to the Remote EJBs themselves :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=208785