users@glassfish.java.net

Re: java.lang.ClassNotFoundException while ejb3 lookup

From: <glassfish_at_javadesktop.org>
Date: Mon, 02 Jun 2008 08:31:25 PDT

You only need to package the remote interface (and any classes it depends on) within the caller's application. Also, if the caller is a Java EE component, you don't need to explicitly specify the
naming service bootstrap properties. Just use the no-arg "new InitialContext()".

Even easier is to use an annotation and have the bean reference injected :

private @EJB Ejb3ServerRemote remoteRef;
[Message sent by forum member 'ksak' (ksak)]

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