users@glassfish.java.net

Re: Pb with remote bean lookup from an AS (host1) toward another AS(host2)

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Apr 2009 09:35:12 PDT

Are you using a Remote 3.0 business interface? In that case, the explicit CosNaming global
lookup won't work since there is no RMI-IIOP interoperability for the Remote 3.0 client view.

You can try following the steps outilned here :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#nonJavaEEwebcontainerRemoteEJB.
In this case you create the InitialContext itself in a way that points to the target server. Then just
pass in the jndi name portion for the lookup, without the corbaname:.. syntax.
[Message sent by forum member 'ksak' (ksak)]

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