users@glassfish.java.net

Connecting to EJB from remote web server

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 May 2007 05:52:26 PDT

I try to connect to EJB deployed on Glassfish from standalone web server (Resin).
I followed the instructions https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#nonJavaEEwebcontainerRemoteEJB.

By default all is working.

The problem begins when changing config of iiop listener of Glassfish
e.g. from
        <iiop-listener address="0.0.0.0" enabled="true" id="orb-listener-1" port="3700" security-enabled="false"/>
to
        <iiop-listener address="127.0.0.1" enabled="true" id="orb-listener-1" port="3701" security-enabled="false"/>

In this case my web app tries to connect to localhost:3700 despite of using

("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
("org.omg.CORBA.ORBInitialPort", "3701");

It seems that these settings are ignored.

I've tried to connect to 127.0.0.1:3701 from usual standalone client, all is working.
So the problem is only when using standalone web server like Resin.

Thank you.
[Message sent by forum member 'hazurek' (hazurek)]

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