919293949596979899100101
} try { oa.destroy(); orb.shutdown(); } catch (Exception e) { System.out.println("Failed to shutdown and destroy the ORB/OA: "+e); e.printStackTrace(System.err);
8182838485868788899091
RecoveryManager.manager().terminate(); ORB myORB = ORB.getInstance("test"); RootOA myOA = OA.getRootOA(myORB); myOA.destroy(); myORB.shutdown(); } } } private static class TimeoutOnFirstRollbackResource implements XAResource {
143144145146147148149150151152153
/* * Shutdown ORB and OA */ logInformation("Shutting down ORB and OA"); oa.destroy(); orb.shutdown(); /* * Ensure final state is correct */ logInformation("Final state: " + PrettyPrintState(_currentState) );
145146147148149150151152153154155
125126127128129130131132133134135
e.printStackTrace(); assertFailure(); } oa.destroy(); orb.shutdown(); } public class PreTestAttribute extends Attribute { protected TestAttributeCallback _callback = null;
8384858687888990919293
assertFailure(); } oa.destroy(); orb.shutdown(); oa2.destroy(); orb2.shutdown(); } public static void main(String[] args) { SimpleServer server = new SimpleServer();