[Ace-users] Re: [tao-users] Reference to ORB
Johnny Willemsen
jwillemsen at remedy.nl
Tue Jun 19 08:10:09 CDT 2007
Hi,
When you call multiple times ORB_init you will get back the same orb each
time.
Regards,
Johnny Willemsen
Remedy IT
Postbus 101
2650 AC Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see http://remedy.nl
<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
Hi,
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
xyz".
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
mailing list