users@glassfish.java.net

Re: JNDI Lookup from domain2 in domain1

From: <forums_at_java.net>
Date: Mon, 6 Jun 2011 08:46:13 -0500 (CDT)

The lookup should be like (with java:)

corbaname:iiop:localhost:7037#java:global/earApp/ejbApp/MyService!de.mycompany.service.MyServiceRemote

If that still doesn't work, then use GlassFish-specific global jndi name, for
example:

corbaname:iiop:localhost:7037#xxx

You can find the non-Portable JNDI name in server.log after deployment.  If
there is no default non-portable JNDI name, you can assign one in
glassfish-ejb-jar.xml, or with @Stateless(mappedName=xxx), or
@Stateful(mappedName=xxx).

 


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