Juan reported this in glassfish interest alias:
According to the documentation http://docs.oracle.com/cd/E26576_01/doc.312/e24930/jndi.htm#beany
The lookup for a standalone client should be done using the interoperable global name
"For a client that doesn't run within a Java EE container, the code just uses the interoperable global name instead of the simple global JNDI name. For example:
Context ic = new InitialContext(); Object o = ic.lookup("corbaname:iiop:host:port#a/b/Foo");
But I am trying with the corbaname and I unable to do it work...
If instead of the corbaname I use the portable global name java:global/HelloWorldEE-ejb/NewSessionBean then it works.
I checked GlassFish 2.1 doc, and it also contains the same instruction as 3.1.2
I tend to think this is a oversight in docs and we should correct:
for 2.x and 3.0, use GlassFish-specific global jndi name for the remote ejb;
for 3.1 or later, one can use either the portable global jndi name (preferred), or GlassFish-specific global jndi name, for the remote ejb.