users@glassfish.java.net

Re: jndi lookup of local session bean

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 Jul 2008 12:56:42 PDT

There are no global JNDI names for local EJB interfaces. You'll need to define an ejb-local-ref
dependency so that it can be looked up via java:comp/env. Alternatively, you can use a
Remote interface and reference it using a global JNDI name. See our EJB FAQ :

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

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=285792