9 Loader::create_object (CORBA::ORB_ptr orb
,
15 CORBA::Object_var obj
=
16 orb
->resolve_initial_references ("RootPOA");
18 PortableServer::POA_var poa
=
19 PortableServer::POA::_narrow (obj
.in ());
21 PortableServer::POAManager_var mgr
=
22 poa
->the_POAManager ();
27 ACE_NEW_RETURN (test
, Test_i (poa
.in ()),
28 CORBA::Object::_nil ());
30 PortableServer::ObjectId_var id
=
31 poa
->activate_object (test
);
33 PortableServer::ServantBase_var tmp
= test
;
38 catch (const CORBA::Exception
&)
41 return CORBA::Object::_nil ();
44 // ****************************************************************
47 ACE_STATIC_SVC_DEFINE (Loader
,
48 ACE_TEXT ("TAO_Object_Loader"),
50 &ACE_SVC_NAME (Loader
),
51 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
55 ACE_FACTORY_DEFINE (OLT
, Loader
)