users@glassfish.java.net

Re: problem of accessing the ejb from java client

From: <glassfish_at_javadesktop.org>
Date: Thu, 26 Jun 2008 08:32:51 PDT

The use of @EJB in the client main class will only work if it's packaged as a Java EE
Application Client component and executed using the appclient command. To write a
plain stand-alone java client to access remote EJBs, see our EJB FAQ :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB
[Message sent by forum member 'ksak' (ksak)]

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