use of com.hp.mwtests.ts.jts.orbspecific.resources.StackImple in project narayana by jbosstm.
the class StackServer 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];
stackPOATie theStack = new stackPOATie(new StackImple());
myOA.objectIsReady(theStack);
Services serv = new Services(myORB);
try {
TestUtility.registerService(refFile, myORB.orb().object_to_string(stackHelper.narrow(myOA.corbaReference(theStack))));
System.out.println("Ready");
myOA.run();
} catch (Exception e) {
TestUtility.fail("StackServer caught exception: " + e);
}
myOA.shutdownObject(theStack);
System.out.println("**StackServer exiting**");
}
Aggregations