users@glassfish.java.net

Re: Problem getting reference to EJB from outside of EJB

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Mar 2009 22:56:53 PST

hmm, so maybe the name is wrong. In glassfish default JNDI name of remote interface is remote interface's class name. I think this should work:

new InitialContext().lookup(TwoEjbRemote.class.getName())
[Message sent by forum member 'sasol' (sasol)]

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