[omniORB] omniORB's ORB::init(..) method.

Duncan Grisby dgrisby@uk.research.att.com
Thu, 07 Jun 2001 16:28:28 +0100


On Thursday 7 June, Ben Miller wrote:

> Doesn't the fact that the ORB::init(..) method requires the third
> parameter to be "omniORB3" make the code non-portable to other ORBs?
> Surely the fact that I've passed in "-ORBid omniORB3" as a command
> line parameter should do the same thing?  Why do I have to specify
> both?

Just miss out the last parameter to ORB_init(), or pass an empty
string (not zero). That should work with all ORBs.

-ORBid should override whatever you pass as the third parameter. If is
failing to do that for you?

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --