[Ace-users] Re: [tao-users] Reference to ORB
jwillemsen at remedy.nl
Tue Jun 19 08:10:09 CDT 2007
When you call multiple times ORB_init you will get back the same orb each
2650 AC Berkel en Rodenrijs
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see http://remedy.nl
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***
From: tao-users-bounces at cse.wustl.edu
[mailto:tao-users-bounces at cse.wustl.edu] On Behalf Of Vikram Karandikar
Sent: Wednesday, June 13, 2007 12:46 PM
To: tao-users at cse.wustl.edu
Subject: [tao-users] Reference to ORB
i have a sample application where in the "int main" mathod i am
creating ORB by using ORB_init.
Now that variable is local to "int main", i don't want to make
it global, but i want to get its reference in some other method say "int
In my previous ORB they were having CORBA::ORB::_duplicate () to
return reference to the global ORB. But TAO does not have _duplicate with no
parameters, means we have to pass ORB reference to be duplicated.
Is there any way to have this work?
"Science is a wonderful thing if one does not have to earn one's
living at it." -- Einstein.
- Vikram Karandikar
More information about the Ace-users