4 ACE_TMAIN(int argc
, ACE_TCHAR
*argv
[])
9 CORBA::ORB_var orb
= CORBA::ORB_init(argc
, argv
);
11 CORBA::Object_var obj
= orb
->resolve_initial_references("RootPOA");
13 PortableServer::POA_var poa
= PortableServer::POA::_narrow(obj
.in());
15 PortableServer::POAManager_var man
= poa
->the_POAManager();
21 PortableServer::ObjectId_var objId
= poa
->activate_object(&simp
);
26 catch (const CORBA::Exception
& ex
)
28 ex
._tao_print_exception ("Exception in main():");