Discussion:
[omniORB] Looking for the best pratice of setting omniORB Parameters
Olivier Thiboutot
2006-09-07 21:16:17 UTC
Permalink
Hi all,

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...

Can you just tip me on that ?

Olivier Thiboutot
OKeeffe, Michael K
2006-09-07 21:59:21 UTC
Permalink
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...

Can you just tip me on that ?

Olivier Thiboutot

_______________________________________________

I'm not sure how much work this would entail for you but if you're
running on Windows, using the registry works quite well, so your
settings are not in code. Then you could send out the .reg file to
clients, or write a small install program to add the settings to the
registry.

See the file omniORB-4.x.x\sample.reg in the distribution.

-Mike
Tamas Kerecsen
2006-09-07 22:11:04 UTC
Permalink
Olivier,

You should be able to pass in this parameter on the command line using
-ORBmaxGIOPConnectionPerServer max, or just specify it in your omniORB.cfg.

See also http://omniorb.sourceforge.net/omnipy2/omniORBpy/omniORBpy004.html

Tamas
Post by Olivier Thiboutot
Hi all,
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...
Can you just tip me on that ?
Olivier Thiboutot
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060907/ec54964a/attachment.htm
Olivier Thiboutot
2006-09-11 19:20:26 UTC
Permalink
Hi...


There are multiples services (.exe) running on the same machine that
needs different config so we manage the registry of any application with
our own set of registries... This is why the global omni registries
setting are not a suitable solution for us.

Thanks for the reply and I will send you the solution if I ever found a
better one.

Olivier Thiboutot

-----Original Message-----
From: OKeeffe, Michael K [mailto:***@amfam.com]
Sent: 7 septembre 2006 11:58
To: Olivier Thiboutot; omniorb-***@omniorb-support.com
Subject: RE: [omniORB] Looking for the best pratice of setting omniORB
Parameters

I'm not sure how much work this would entail for you but if you're
running on Windows, using the registry works quite well, so your
settings are not in code. Then you could send out the .reg file to
clients, or write a small install program to add the settings to the
registry.

See the file omniORB-4.x.x\sample.reg in the distribution.

-Mike

Olivier Wrote :

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...

Can you just tip me on that ?

Olivier Thiboutot
Duncan Grisby
2006-09-18 02:14:45 UTC
Permalink
Post by Olivier Thiboutot
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 --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...