[omniORB] Looking for the best pratice of setting omniORB Parameters

Duncan Grisby duncan at grisby.org
Sun Sep 17 22:14:51 BST 2006


On Thursday 7 September, "Olivier Thiboutot" wrote:

> I'm working with omniOrb 2.80 on MS VC++6 and we want to migrate to
> 4.0.7.
> 
> Here is the question: We had lines of codes of the way 
> 	omniORB::maxTcpConnectionPerServer = max;
> 
> Now with the 4.0.7, I only found this way.
> 
> Adding 
> #include "OmniOrb4/internal/orbParameters.h"
> 
> omni::orbParameters::maxGIOPConnectionPerServer = max;
> 	
> I feel that using #include "OmniOrb4/internal/..." is not the best way
> to do it...

Indeed, that's not the best thing to do, although it works ok.

You should either use a config file, registry entries, or, if you want
to hard-code the settings into the executable, use the extra argument to
ORB_init documented here:

  http://omniorb.sourceforge.net/omni40/omniORB/omniORB004.html#toc18

Cheers,

Duncan.

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



More information about the omniORB-list mailing list