users@glassfish.java.net

Re: JNDI Problem with defined JNDI name

From: <forums_at_java.net>
Date: Tue, 2 Aug 2011 08:34:43 -0500 (CDT)

GlassFish does not have GlassFish-specific local global jndi name.  In
addition to using a portabl global jndi name, you can also try injecting the
bean into a web component class (servlet, listener, filter, managed bean,
etc), or declare a <ejb-locla-ref> in web.xml.

@EJB(name="ejb/dispatchLocal")

private DispatcherServiceLocal dispatchLocal;

In your pojo class, lookup("java:comp/env/ejb/dispatchLocal");


--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/828572