Download O2 Corba User Manual

Transcript
Implement the O2Corba server in file srv_main.cc
db = new o2_Database_i("grid_b", argc, argv, env);
myGrid = new d_Grid_Factory_i("Grid");
lgrid = new d_List_Grid_Factory_i( "List_Grid");
qgrid = new d_Query_List_Grid_Factory_i( "Query_Grid");
// tell ORB that we have completed the server’s initialisation:
cout << "calling boa->run" << endl;
boa->run();
cout << "server exiting" << endl;
db->release_instance();
myGrid->release_instance();
lgrid->release_instance();
qgrid->release_instance();
return(0);
}
O 2Corba User Manual
69