Search in sources :

Example 1 with HammerPOATie

use of com.hp.mwtests.ts.jts.TestModule.HammerPOATie in project narayana by jbosstm.

the class HammerServer 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];
    HammerPOATie theObject = new HammerPOATie(new HammerObject());
    myOA.objectIsReady(theObject);
    Services serv = new Services(myORB);
    try {
        TestUtility.registerService(refFile, myORB.orb().object_to_string(HammerHelper.narrow(myOA.corbaReference(theObject))));
        System.out.println("\nIOR file: " + refFile);
        System.out.println("Ready");
        // assertReady();
        myOA.run();
    } catch (Exception e) {
        // fail("HammerServer caught exception: "+e);
        e.printStackTrace(System.err);
    }
    myOA.shutdownObject(theObject);
    System.out.println("**HammerServer exiting**");
}
Also used : ServerORB(com.hp.mwtests.ts.jts.utils.ServerORB) Services(com.arjuna.orbportability.Services) RootOA(com.arjuna.orbportability.RootOA) HammerPOATie(com.hp.mwtests.ts.jts.TestModule.HammerPOATie) HammerObject(com.hp.mwtests.ts.jts.orbspecific.resources.HammerObject) 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 HammerPOATie (com.hp.mwtests.ts.jts.TestModule.HammerPOATie)1 HammerObject (com.hp.mwtests.ts.jts.orbspecific.resources.HammerObject)1 ServerORB (com.hp.mwtests.ts.jts.utils.ServerORB)1