[omniORB] multiple IP addresses in an IOR

Duncan Grisby duncan at grisby.org
Fri Jun 20 16:24:37 BST 2003


On Tuesday 17 June, "Ralf Hupfer" wrote:

> Why is it impossible to initialize the ORB with more than one parameter -
> ORBpoa_iiop_name_port <myHost>:<myPort>, when the host arguments 
> are identical but the port numbers differ? For example, 
> 
> -ORBpoa_iiop_name_port firstHost:12345 -ORBpoa_iiop_name_port 
> secondHost:12345
> 
> ends up with a CORBA::INITIALIZE exception with omniORB 3.04, while 
> it works when using different port numbers. What is this restriction good 
> for?

In omniORB 3, all host names / addresses must belong to the machine
you are running on. So, if you have multiple addresses, you can use
them, but you can't give the name for a different machine.

In omniORB 4, you can specify addresses that do not belong to the
machine, using the more flexible -ORBendPoint options,
-ORBendPointNoListen in particular.

Also, note that omniORB 3 clients only ever look at the first address
in object references, so putting more than one in is rather pointless.
omniORB 4 clients do look at all the addresses.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list