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
))
11 Hello::get_helloworld ()
13 HelloWorld
*hello_world
;
14 ACE_NEW_THROW_EX (hello_world
,
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 ());
30 this->orb_
->shutdown (false);