Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / ICMG_Any_Bug / Hello.cpp
blob8d31a00870f4eec16c94460e515847df29cfffd3
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 (void)
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 (void)
30 this->orb_->shutdown (0);