27 int main(
int argc,
char* argv[])
31 orb = CORBA::ORB_init(argc, argv);
35 CORBA::Object_var poaObj = orb -> resolve_initial_references(
"RootPOA");
36 PortableServer::POA_var rootPOA = PortableServer::POA::_narrow(poaObj);
41 PortableServer::POAManager_var
manager = rootPOA -> the_POAManager();
43 CosNaming::NamingContext_var cxT;
44 CORBA::Object_var nS = orb->resolve_initial_references(
"NameService");
45 cxT = CosNaming::NamingContext::_narrow(nS);
47 CORBA::Object_var integratorFactory;
49 integratorFactory = integratorFactoryImpl -> _this();
52 nc[0].id = CORBA::string_dup(
"DynamicsSimulatorFactory");
53 nc[0].kind = CORBA::string_dup(
"");
54 cxT -> rebind(nc, integratorFactory);
56 manager -> activate();
57 cout <<
"ready" << endl;
60 }
catch (CORBA::SystemException& ex) {
61 cerr << ex._rep_id() << endl;
int main(int argc, char *argv[])