Discussion:
[omniORB] Precedence of -ORB** settings in registry/cfg vs. commandline?
Martin Trappel
2008-11-24 22:14:28 UTC
Permalink
Hi all.

I'm using omniORB 4.1.2 on Windows.
I have a registry setting for /endPoint 0="..." and I want to override
it with a commandline option of -ORBendPoint "...".

However, it seems that the registry option takes precedence and the
command line option is not used.
Any way to prevent this, or am I misreading something?
(See loggings below)

cheers,
Martin


Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\omniORB\endPoint\0="giop:tcp:wrong_name:"

CLI:
-ORBendPoint "giop:tcp:trappelm:"


Results:
--------
a) registry only:
omniORB: getaddrinfo failed for node 'wrong_name', port 0: Der
angegebene Host ist unbekannt.
omniORB: Cannot get the address of host wrong_name.
omniORB: Error: Unable to create an endpoint of this description:
giop:tcp:wrong_name:

b) registry and commandline:
omniORB: getaddrinfo failed for node 'wrong_name', port 0: Der
angegebene Host ist unbekannt.
omniORB: Cannot get the address of host wrong_name.
omniORB: Error: Unable to create an endpoint of this description:
giop:tcp:wrong_name:

c) remove entry from registry and use only commandline:
( no errror logs regarding interface)

d) cli with wrong name: (-ORBendPoint "giop:tcp:wrong_name:")
omniORB: getaddrinfo failed for node 'wrong_name', port 0: Der
angegebene Host ist unbekannt.
omniORB: Cannot get the address of host wrong_name.
omniORB: Error: Unable to create an endpoint of this description:
giop:tcp:wrong_name:
Duncan Grisby
2008-12-03 17:04:35 UTC
Permalink
Post by Martin Trappel
I'm using omniORB 4.1.2 on Windows.
I have a registry setting for /endPoint 0="..." and I want to override
it with a commandline option of -ORBendPoint "...".
However, it seems that the registry option takes precedence and the
command line option is not used.
Any way to prevent this, or am I misreading something?
(See loggings below)
In general, command line options override ones set in the registry.
However, endPoint is an additive option, where each option adds another
endpoint, rather than overriding the previous one. You generally
shouldn't put endPoint options in the registry.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...