context.getResult().set(html); } else if (LIST_HEURISTIC_COMMITTED_TRANSACTIONS.equals(operationName)) { String[] list = serverControl.listHeuristicCommittedTransactions(); reportListOfStrings(context, list); } else if (LIST_HEURISTIC_ROLLED_BACK_TRANSACTIONS.equals(operationName)) {
context.getResult().set(html); } else if (LIST_HEURISTIC_COMMITTED_TRANSACTIONS.equals(operationName)) { String[] list = serverControl.listHeuristicCommittedTransactions(); reportListOfStrings(context, list); } else if (LIST_HEURISTIC_ROLLED_BACK_TRANSACTIONS.equals(operationName)) {
Assert.assertEquals(0, jmxServer.listHeuristicCommittedTransactions().length); Assert.assertEquals(0, jmxServer.listHeuristicRolledBackTransactions().length); Assert.assertEquals(1, jmxServer.listHeuristicCommittedTransactions().length); Assert.assertEquals(0, jmxServer.listHeuristicRolledBackTransactions().length); } else { Assert.assertEquals(0, jmxServer.listHeuristicCommittedTransactions().length); Assert.assertEquals(1, jmxServer.listHeuristicRolledBackTransactions().length);
String[] listHeuristicCommittedTransactions = jmxServer.listHeuristicCommittedTransactions(); Assert.assertEquals(1, listHeuristicCommittedTransactions.length); System.out.println(listHeuristicCommittedTransactions[0]);
Assert.assertEquals(0, jmxServer.listHeuristicCommittedTransactions().length); } else { Assert.assertEquals(0, jmxServer.listHeuristicRolledBackTransactions().length); jmxServer = ManagementControlHelper.createActiveMQServerControl(mbeanServer); if (heuristicCommit) { Assert.assertEquals(0, jmxServer.listHeuristicCommittedTransactions().length); } else { Assert.assertEquals(0, jmxServer.listHeuristicRolledBackTransactions().length);
jmxServer = ManagementControlHelper.createActiveMQServerControl(mbeanServer); if (heuristicCommit) { String[] listHeuristicCommittedTransactions = jmxServer.listHeuristicCommittedTransactions(); Assert.assertEquals(1, listHeuristicCommittedTransactions.length); System.out.println(listHeuristicCommittedTransactions[0]);