[omniORB] Calling ORB_init many times with different values for
same arg
Frederic Prin
frederic.prin at silvaco.com
Tue Mar 2 19:01:06 GMT 2004
Hi,
Is it possible to call many times ORB_init() in the same programs with
different -ORBInitRef NameService=corbaname::MyHost1 arg ?
Example:
--------
int argc = 3
Char *argv[3] = { "dummy", "-ORBInitRef",
"NameService=corbaname::MyHost", 0 } ;
CORBA::ORB_var orb1 = CORBA::ORB_init( argc, argv ) ;
// when existing argc == 1 so ORB_init 'consume' -ORBInitRef arg and
value
And in another (far away!) piece of code
int argc = 3
Char *argv[3] = { "dummy", "-ORBInitRef",
"NameService=corbaname::AnotherHost" } ;
CORBA::ORB_var orb2 = CORBA::ORB_init( argc, argv ) ;
// when existing argc == 3 so ORB_init reject -ORBInitRef arg
Is it normal ?
Is calling many times ORB_init creates one only ORB object ?
If yes, is it possible to change the -ORBInitRef NameService= at runtime
?
Is there a method call rather than passing args to ORB_init ?
Thanks very much
Fred
(
Frédéric Prin )
Senior Software Engineer /
S I L V A C O (
Grenoble REsearch CEnter \
Tel 04 56 38 10 33 )
__________________________/___
/__/__/__/__/__/__/__/__/__/__/
/__/__/__/__/__/__/__/__/_____/
/__/__/__/__/__/__/__/__/__/__/
More information about the omniORB-list
mailing list