[omniORB] Muti-nameserver problem

Naoki Miyashita miyashita at unisec.jp
Tue Apr 6 09:59:03 BST 2010


hello,

I have a trouble about multi nameservers by using OmniORB.

My application(MyApp) with OmniORB intends to bind two server objects to two nameservers as follows.

Hosts:
1)  MyApp : 192.168.1.10
2)  Nameserver1 : 192.168.1.100:2809
3)  Nameserver2 : 192.168.1.200:2809

MyApp actions are
1) Initialize ORB to Nameserver1 as follows on one thread.

try {
	const char* options[][2] = { { "InitRef", "NameService=corbaname::192.168.1.100:2809" }, { 0, 0 } };
		CORBA::ORB_var orb = CORBA::ORB_init(__argc, __argv, "omniORB4", options);
....................
...................

2) Initialize ORB to Nameserver2 as follows on another thread.

try {
	const char* options[][2] = { { "InitRef", "NameService=corbaname::192.168.1.200:2809" }, { 0, 0 } };
		CORBA::ORB_var orb = CORBA::ORB_init(__argc, __argv, "omniORB4", options);
....................
...................


I have a trouble in this 2) action.
I set the nameserver as "NameService=corbaname::192.168.1.200:2809", but the object was
bound to Nameserver1(192.168.1.100:2809).

According to my for this problem, the set information of "nameserver" seems 
to be not changed until calling "orb->destory()".
I'd like to bind 2-nameserver simultaneously, Let me know how to use multi-nameserver.

Thanks.

Naoki





More information about the omniORB-list mailing list