[omniORB] Basic simple question. Can two or more references to different ORBS coexist?
evgeni.rojkov at durr.com
evgeni.rojkov at durr.com
Fri Jan 16 12:42:26 GMT 2015
Hello Ramon,
looking in the CORBA::ORB_init() implementation in corbaOrb.cc (ominORB 4.1.7) you will see single instance (the_orb) having reference counting.
So parametrization could be done ones.
But there is no limitation having/accessing servants on all available hosts/ports.
You could access different NameService(s) with omni::omniURI::stringToObject(nameServiceUri) also.
Best regards,
Evgeni Rojkov
CORBA::ORB_ptr
CORBA::ORB_init(int& argc, char** argv, const char* orb_identifier,
const char* options[][2])
{
omni_tracedmutex_lock sync(orb_lock);
if( the_orb ) {
the_orb->_NP_incrRefCount();
return the_orb;
}
.....
Von: Ramón Talavera [mailto:ramon.talavera at gmail.com]
Gesendet: Freitag, 16. Januar 2015 13:01
An: omniorb-list at omniorb-support.com
Betreff: [omniORB] Basic simple question. Can two or more references to different ORBS coexist?
I am testing and somehow feeling shy for asking such a simple question:
Can two or more references to different ORBS coexist?
In more detail:
Can there be two or more CORBA::ORB_var configured with different calls to CORBA::ORB_init(argc, argv) passing different arguments in each call?
My tests are obtaining the same address for all orb pointers and the arguments to the successive calls to ORB_init seem to be ignored.
Is this normal behaviour? I am trying to make the code for a program which uses servants registered under two different orbs and the result I am getting is that the second servant is registered onto the NameService of the first orb, no matter if told to register on orb2.
Thanks in advance,
Ramon Talavera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20150116/5311a875/attachment.html>
More information about the omniORB-list
mailing list