use of org.jboss.jbossts.qa.CrashRecovery09Impls.AITServiceImpl01 in project narayana by jbosstm.
the class AITServer02 method main.
public static void main(String[] args) {
try {
ORBInterface.initORB(args, null);
OAInterface.initOA();
Uid uid = ObjectUidStore.loadUid(args[args.length - 2]);
AITServiceImpl01 aitServiceImpl = new AITServiceImpl01(uid);
ServicePOATie servant = new ServicePOATie(aitServiceImpl);
OAInterface.objectIsReady(servant);
Service service = ServiceHelper.narrow(OAInterface.corbaReference(servant));
ServerIORStore.storeIOR(args[args.length - 1], ORBInterface.orb().object_to_string(service));
System.out.println("Ready");
ORBInterface.run();
} catch (Exception exception) {
System.err.println("AITServer02.main: " + exception);
exception.printStackTrace(System.err);
}
}
use of org.jboss.jbossts.qa.CrashRecovery09Impls.AITServiceImpl01 in project narayana by jbosstm.
the class AITServer03 method main.
public static void main(String[] args) {
try {
ORBInterface.initORB(args, null);
OAInterface.initOA();
AITServiceImpl01 aitServiceImpl1 = new AITServiceImpl01();
AITServiceImpl01 aitServiceImpl2 = new AITServiceImpl01();
ServicePOATie servant1 = new ServicePOATie(aitServiceImpl1);
ServicePOATie servant2 = new ServicePOATie(aitServiceImpl2);
OAInterface.objectIsReady(servant1);
Service service1 = ServiceHelper.narrow(OAInterface.corbaReference(servant1));
OAInterface.objectIsReady(servant2);
Service service2 = ServiceHelper.narrow(OAInterface.corbaReference(servant2));
ObjectUidStore.storeUid(args[args.length - 4], aitServiceImpl1.get_uid());
ObjectUidStore.storeUid(args[args.length - 3], aitServiceImpl2.get_uid());
ServerIORStore.storeIOR(args[args.length - 2], ORBInterface.orb().object_to_string(service1));
ServerIORStore.storeIOR(args[args.length - 1], ORBInterface.orb().object_to_string(service2));
System.out.println("Ready");
ORBInterface.run();
} catch (Exception exception) {
System.err.println("AITServer03.main: " + exception);
exception.printStackTrace(System.err);
}
}
use of org.jboss.jbossts.qa.CrashRecovery09Impls.AITServiceImpl01 in project narayana by jbosstm.
the class AITServer01 method main.
public static void main(String[] args) {
try {
ORBInterface.initORB(args, null);
OAInterface.initOA();
AITServiceImpl01 aitServiceImpl = new AITServiceImpl01();
ServicePOATie servant = new ServicePOATie(aitServiceImpl);
OAInterface.objectIsReady(servant);
Service service = ServiceHelper.narrow(OAInterface.corbaReference(servant));
ObjectUidStore.storeUid(args[args.length - 2], aitServiceImpl.get_uid());
ServerIORStore.storeIOR(args[args.length - 1], ORBInterface.orb().object_to_string(service));
System.out.println("Ready");
ORBInterface.run();
} catch (Exception exception) {
System.err.println("AITServer01.main: " + exception);
exception.printStackTrace(System.err);
}
}
use of org.jboss.jbossts.qa.CrashRecovery09Impls.AITServiceImpl01 in project narayana by jbosstm.
the class AITServer04 method main.
public static void main(String[] args) {
try {
ORBInterface.initORB(args, null);
OAInterface.initOA();
Uid uid1 = ObjectUidStore.loadUid(args[args.length - 4]);
Uid uid2 = ObjectUidStore.loadUid(args[args.length - 3]);
AITServiceImpl01 aitServiceImpl1 = new AITServiceImpl01(uid1);
AITServiceImpl01 aitServiceImpl2 = new AITServiceImpl01(uid2);
ServicePOATie servant1 = new ServicePOATie(aitServiceImpl1);
ServicePOATie servant2 = new ServicePOATie(aitServiceImpl2);
OAInterface.objectIsReady(servant1);
Service service1 = ServiceHelper.narrow(OAInterface.corbaReference(servant1));
OAInterface.objectIsReady(servant2);
Service service2 = ServiceHelper.narrow(OAInterface.corbaReference(servant2));
ServerIORStore.storeIOR(args[args.length - 2], ORBInterface.orb().object_to_string(service1));
ServerIORStore.storeIOR(args[args.length - 1], ORBInterface.orb().object_to_string(service2));
System.out.println("Ready");
ORBInterface.run();
} catch (Exception exception) {
System.err.println("AITServer04.main: " + exception);
exception.printStackTrace(System.err);
}
}
Aggregations