39 int main(
int argc,
char* argv[])
43 orb = CORBA::ORB_init(argc, argv);
47 CORBA::Object_var poaObj = orb -> resolve_initial_references(
"RootPOA");
48 PortableServer::POA_var rootPOA = PortableServer::POA::_narrow(poaObj);
53 PortableServer::POAManager_var
manager = rootPOA -> the_POAManager();
55 CosNaming::NamingContext_var cxT;
56 CORBA::Object_var nS = orb->resolve_initial_references(
"NameService");
57 cxT = CosNaming::NamingContext::_narrow(nS);
59 CORBA::Object_var integratorFactory;
61 integratorFactory = integratorFactoryImpl -> _this();
64 nc[0].id = CORBA::string_dup(
"DynamicsSimulatorFactory");
65 nc[0].kind = CORBA::string_dup(
"");
66 cxT -> rebind(nc, integratorFactory);
69 manager -> activate();
70 cout <<
"ready" << endl;
73 }
catch (CORBA::SystemException& ex) {
74 cerr << ex._rep_id() << endl;
int main(int argc, char *argv[])