Search in sources :

Example 1 with StackImple

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**");
}
Also used : ServerORB(com.hp.mwtests.ts.jts.utils.ServerORB) Services(com.arjuna.orbportability.Services) StackImple(com.hp.mwtests.ts.jts.orbspecific.resources.StackImple) RootOA(com.arjuna.orbportability.RootOA) TestModule.stackPOATie(com.hp.mwtests.ts.jts.TestModule.stackPOATie) ServerORB(com.hp.mwtests.ts.jts.utils.ServerORB) ORB(com.arjuna.orbportability.ORB)

Aggregations

ORB (com.arjuna.orbportability.ORB)1 RootOA (com.arjuna.orbportability.RootOA)1 Services (com.arjuna.orbportability.Services)1 TestModule.stackPOATie (com.hp.mwtests.ts.jts.TestModule.stackPOATie)1 StackImple (com.hp.mwtests.ts.jts.orbspecific.resources.StackImple)1 ServerORB (com.hp.mwtests.ts.jts.utils.ServerORB)1