use of com.hp.mwtests.ts.jts.TestModule.ExplicitStackPOATie in project narayana by jbosstm.
the class ExplicitStackServer method main.
public static void main(String[] args) throws Exception {
ServerORB orb = new ServerORB();
ORB myORB = orb.getORB();
RootOA myOA = orb.getOA();
String refFile = args[0];
ExplicitStackPOATie theObject = new ExplicitStackPOATie(new ExplicitStackImple());
myOA.objectIsReady(theObject);
Services serv = new Services(myORB);
try {
TestUtility.registerService(refFile, myORB.orb().object_to_string(myOA.corbaReference(theObject)));
System.out.println("Ready");
myOA.run();
} catch (Exception e) {
e.printStackTrace();
}
myOA.shutdownObject(theObject);
System.out.println("**ExplicitStackServer exiting**");
}
Aggregations