users@glassfish.java.net

Re: migrating off weblogic, getting ejb2 remote bean interface

From: <glassfish_at_javadesktop.org>
Date: Tue, 14 Oct 2008 09:02:19 PDT

Hi Daniel,

There are two main issues : 1) how to instantiate the InitialContext and 2) what global JNDI name to pass into the lookup.

For 1), glassfish only requires the no-arg InitialContext. As long as the appserv-rt.jar is in the classpath, the correct naming provider will be bootstrapped in most cases. See https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB for an example.

For 2), the default global JNDI name for EJB 2.x components in Glassfish is the fully-qualified remote home interface name. See https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment for more details.
[Message sent by forum member 'ksak' (ksak)]

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