users@glassfish.java.net

Re: Manual lookup of remote EJB in Glassfish

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Oct 2010 10:32:16 PDT

EJBUtils is an implementation class and should not be used directly by applications.

@EJB declares a ejb-ref or ejb-local-ref in the webapp, AND intializes the target field w/ the injected value. If you want to use lookup (by the ejb-ref-name) only you can declare such a ejb-ref in web.xml, and map it to its remote target in sun-web.xml.
[Message sent by forum member 'cf126330']

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