Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / ICMG_Any_Bug / Hello.cpp
blob9f6914e2ab3c9a3afbae277276643d60067aa526
1 #include "Hello.h"
2 #include "HelloWorld.h"
4 Hello::Hello (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
5 : poa_ (PortableServer::POA::_duplicate (poa)),
6 orb_ (CORBA::ORB::_duplicate (orb))
10 Test::HelloWorld_ptr
11 Hello::get_helloworld ()
13 HelloWorld *hello_world;
14 ACE_NEW_THROW_EX (hello_world,
15 HelloWorld,
16 CORBA::NO_MEMORY ());
18 PortableServer::ObjectId_var id =
19 this->poa_->activate_object (hello_world);
21 CORBA::Object_var object = this->poa_->id_to_reference (id.in ());
23 Test::HelloWorld_var hw = Test::HelloWorld::_narrow (object.in ());
24 return hw._retn ();
27 void
28 Hello::shutdown ()
30 this->orb_->shutdown (false);