users@glassfish.java.net

Re: [TROUBLE] glassfish can not resolve JNDI name properly

From: <forums_at_java.net>
Date: Fri, 5 Aug 2011 12:03:57 -0500 (CDT)

You can inject the ejb-ref with @EJB into the calling component, and map the
it in glassfish-web.xml to

corbaname:iiop:127.0.0.1:3700#java:global/MailServer/ServerLogic/ServerUtils
Another option without using @EJB injection is to declare the ejb-ref in the
descriptor of the calling component, e.g., web.xml, application-client.xml,
and map it in glassfish-web.xml or glassfish-application-client.xml.  Your
client can then look up the portable name of the ejb-ref
("java:comp/env/ejb/xxx");


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