| Newsgroups |
gmane.comp.corba.orbacus |
| Message-ID |
<[email protected]> |
Dear All,
I'm a newbie in CORBA (C++) trying to run a client program to invoke a
method from two servers (A and B). After receive a command, my client
program will query LDAP database for the name of server (A or B) to be
invoked. It can work with correct logic but sometimes it crash and
produce the core dump from various position in the program.
I'm not sure about the way I implement the connection to 2 servers
because the program can run for a long period if LDAP server is
foreced to return only 'A' or 'B' server. But it will crash
(sometimes) when LDAP send server name depending on some parameters.
Currently, I have only one ORB and use it for the connection to both
server 'A' and 'B'.
So, my question is:
In this situation, do I need to create 2 ORBs for 2 server as following?
CORBA:ORB_var orbA = CORBA::ORB_init(argc, argv, "A");
CORBA:ORB_var orbB = CORBA::ORB_init(argc, argv, "B");
And use orbA to create and object from IOR file of server 'A' and orbB
for the IOR file from server 'B'.
Thank you in advance.
Regards,
Thanwa
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html