ejb@glassfish.java.net

Re: Problem with EJB FAQ: "How do I access a Remote EJB (3.0 or 2.x) from a non-Java EE web container like Tomcat or Resin?"

From: Mahesh.Kannan <Mahesh.Kannan_at_Sun.COM>
Date: Sun, 05 Nov 2006 17:48:34 -0800

Found out that when "org.omg.CORBA.ORBInitialPort" is NOT specified , as
part of InitialContext bootstraping an attempt is made to connect to
"localhost" (even though "org.omg.CORBA.ORBInitialPort" is specified) .
Looks like an Naming/ORB issue. Will ask the Corba team to respond.

Note that if Tomcat is also running on the same server this is not a
problem as the attempt to localhost:3700 will succeed (since we listen
on 0.0.0.0)

--Mahesh

Mahesh.Kannan wrote:

> Hello Wouter,
> I could reproduce this on my setup.
>
> Looks like if the (Glassfish) server is running on a different m/c
> *both*
> "org.omg.CORBA.ORBInitialHost" and "org.omg.CORBA.ORBInitialPort"
> are REQUIRED.
>
> There is definitely a bug here, and I'll soon post a message once I
> figure out why "org.omg.CORBA.ORBInitialPort" is required even if it
> is (the default port of) 3700.
>
> Note that, I didn't have to add any additional iiop-listener to
> glassfish (still could use listener1 on 0.0.0.0).
>
> Will update the glassfish page based on this finding soon
>
> Thanks,
> --Mahesh
>
> Wouter van Reeven wrote:
>
>> Hi Jason,
>>
>> On Wed, November 1, 2006 10:30, Jason.Huang_at_Sun.COM said:
>>
>>
>>> It works now. Many thanks.
>>>
>>
>>
>> You're welcome.
>>
>>
>>
>>> EJB team, I suggest to modify the FAQ page or add the link of Wouter's
>>> blog to the FAQ page which will save others' time.
>>>
>>
>>
>> Of course I would very much like that, but I don't think it is
>> necessary. However, a few
>> additional hints might be needed in the EJB FAQ:
>>
>> 1) In case of Tomcat, place the required jars in shared/lib and not
>> in common/lib or in
>> the lib dir in the WEB-INF directory of the web app.
>> 2) In case of a remote connection to a remote session bean, make sure
>> to reconfigure
>> Glassfish as I email previously or as stated in the second comment in
>> my blog. This
>> reconfiguration not only is needed in case of Tomcat but also for
>> other clients.
>>
>>
>> Greets, Wouter
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>