[omniORB] basic communication stuff
Sai-Lai Lo
S.Lo@uk.research.att.com
17 Apr 2000 11:42:57 +0100
With a host that has multiple IP addresses, it is often difficult for the
ORB to pick the "right" one.
I suspect the IP address embedded in the object reference is that of the
wrong network interface. You can force a server to insert a particular IP
address in all the object references it generate by either:
1. Invoke with the option -BOAiiop_name_port <hostname>
e.g. ./eg2_impl -BOAiiop_name_port "209.139.139.80"
2. Or set the environment variable OMNIORB_USEHOSTNAME
e.g. export OMNIORB_USEHOSTNAME="209.139.139.80"
Sai-Lai
>>>>> Sean Kessler writes:
> I am running omniNames on a Linux machine. The machine has
> two interfaces ppp0 and eth0. My omniORB.cfg file contains
> the following entries...
> ORBInitialHost 209.139.139.80
> ORBInitialPort 900
> The address 209.139.139.80 (which I made up here) corresponds
> to the ppp0 interface.
> I am starting up omniNames with the following arguments...
> ./omniNames -ORBtraceLevel 25 -ORBInitialHost 209.139.139.80
> I also have a servant on the same machine that registers itself
> with the naming service. Now, a client running on the same box is
> able to get a reference to the servant and call its methods.
> This works just fine.
> However, clients not residing on the same machine are able
> to get a reference to the naming service but are not able
> to get a reference to the servant. The client in question
> initializes the ORB with the following parameters...
> ORBInitialHost 209.139.139.80
> ORBInitialPort 900
> I just don't get it. Why is a remote client able to connect
> to the naming service and not be able to get a reference to the
> object while a local client is able to both connect to the
> naming service and acquire a reference to the object. I must
> be overlooking something here.
> Any suggestions would be greatly appreciated.
> -Sean Kessler
--
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.com
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND