users@glassfish.java.net

Re: Desperate looking for a been from Java SE

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Jun 2007 07:34:49 PDT

Hi Xavier,

We recommend using the no-arg InitialContext constructor. As long as appserv-rt.jar
is in the classpath, the correct naming provider will bootstrap automatically in the client JVM.
Since you're writing a non-portable stand-alone client, you need to explicitly specify the
global JNDI name of the EJB. Based on the code snippet that would be :

   new InitialContext().lookup("ejb/CodeFormat_Bean");

You can find more information in our EJB FAQ :

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

 --ken
[Message sent by forum member 'ksak' (ksak)]

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