users@glassfish.java.net

Re: EJB access from remote Stand Alone Client

From: <glassfish_at_javadesktop.org>
Date: Wed, 25 Jun 2008 13:25:25 PDT

The client-side JNDI code looks fine, except for the argument to the lookup method. You have to
make sure that the string you're passing in matches the global JNDI name of the target Remote
EJB. By default (in Glassfish), the Remote EJB is assigned a global JNDI name equal to its
fully-qualified Remote interface name. That default can be overridden by setting the
@Stateless/_at_Stateful mappedName() attribute or by setting the jndi-name attribute in the
corresponding sun-ejb-jar.xml.
[Message sent by forum member 'ksak' (ksak)]

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