users@glassfish.java.net

Re: GF v3: Remote EJB access fails ...org/CosNaming/NamingContext/NotFound:

From: <glassfish_at_javadesktop.org>
Date: Thu, 25 Mar 2010 10:51:50 PDT

My guess would be a network problem. Are you sure there's network visibility between the machines and the ports are correct? I'm not seeing anything wrong with the code. We have tests for these scenarios that work fine. You can also try an explicit lookup with an InitialContext() configured to point to the target host to bypass the corbaname:: machinery.

            Properties props = new Properties();
            String host = ...;
            // port defaults to 3700
            props.setProperty("org.omg.CORBA.ORBInitialHost",
                              host);

            InitialContext ic = new InitialContext(props);
            ic.lookup(...);
[Message sent by forum member 'ksak']

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