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");