users@glassfish.java.net

Cannot connect remotely to GlassFish

From: <glassfish_at_javadesktop.org>
Date: Fri, 17 Oct 2008 03:01:43 PDT

Hello,

If I'm trying to create a JNDI connection to Glassfish, locally works, but remotely not!

I can put anything into the Context.PROVIDER_URL, "iiop://myremoteserver:3700"
parameter, the client takes allways the localhost!!

And I'm getting the following Error message:

...
Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
...

Is there some configuration task to do??

The statement: props.setProperty(Context.PROVIDER_URL, "iiop://myremoteserver:3700");

has absolutely no effect!!!

Here my configuration, and with jndi.properties the same:
props.setProperty(Context.PROVIDER_URL, "iiop://myremoteserver:3700");
props.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty(Context.URL_PKG_PREFIXES,"com.sun.enterprise.naming");
props.setProperty(Context.STATE_FACTORIES,"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

Can you help me solving this problem??!!

Best Regards!
[Message sent by forum member 'endrexy' (endrexy)]

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