[omniORB] Basic simple question. Can two or more references to different ORBS coexist?

Duncan Grisby duncan at grisby.org
Fri Jan 16 13:04:14 GMT 2015


On Fri, 2015-01-16 at 13:01 +0100, Ramón Talavera wrote:


> Can two or more references to different ORBS coexist?

Not in omniORB, no.
> 
> Can there be two or more CORBA::ORB_var configured with different
> calls to  CORBA::ORB_init(argc, argv) passing different arguments in
> each call? 
> 
No, but...

> Is this normal behaviour? I am trying to make the code for a program
> which uses servants registered under two different orbs and the result
> I am getting is that the second servant is registered onto the
> NameService of the first orb, no matter if told to register on orb2. 

The naming service you register your objects in has no relationship
whatsoever to the ORB. The naming service is just a collection of CORBA
objects like any other objects. If you want to register object A in
naming service 1 and object B in naming service 2, then just do that.
There's no need for A and B to have different ORBs.

Cheers,

Duncan.

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





More information about the omniORB-list mailing list