} else if (COMMIT_PREPARED_TRANSACTION.equals(operationName)) { String txId = TRANSACTION_AS_BASE_64.resolveModelAttribute(context, operation).asString(); boolean committed = serverControl.commitPreparedTransaction(txId); context.getResult().set(committed); } else if (ROLLBACK_PREPARED_TRANSACTION.equals(operationName)) {
} else if (COMMIT_PREPARED_TRANSACTION.equals(operationName)) { String txId = TRANSACTION_AS_BASE_64.resolveModelAttribute(context, operation).asString(); boolean committed = serverControl.commitPreparedTransaction(txId); context.getResult().set(committed); } else if (ROLLBACK_PREPARED_TRANSACTION.equals(operationName)) {
@Test public void testInvalidCall() throws Exception { Configuration configuration = createDefaultInVMConfig().setJMXManagementEnabled(true); ActiveMQServer server = createServer(false, configuration); server.setMBeanServer(mbeanServer); server.start(); ActiveMQServerControl jmxServer = ManagementControlHelper.createActiveMQServerControl(mbeanServer); Assert.assertFalse(jmxServer.commitPreparedTransaction("Nananananana")); }
receiveLocator.close(); boolean success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid)); success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid));
jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid)); } else { jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid)); } else { jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid)); } else { jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid)); } else { jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));