Package org.hornetq.api.core.management

Examples of org.hornetq.api.core.management.HornetQServerControl.commitPreparedTransaction()


                String[] list = serverControl.listHeuristicRolledBackTransactions();
                reportListOfString(context, list);
            } else if (COMMIT_PREPARED_TRANSACTION.equals(operationName)) {
                transactionValidator.validate(operation);
                String txId = operation.require(TRANSACTION_AS_BASE_64).asString();
                boolean committed = serverControl.commitPreparedTransaction(txId);
                context.getResult().set(committed);
            } else if (ROLLBACK_PREPARED_TRANSACTION.equals(operationName)) {
                transactionValidator.validate(operation);
                String txId = operation.require(TRANSACTION_AS_BASE_64).asString();
                boolean committed = serverControl.rollbackPreparedTransaction(txId);
View Full Code Here


                String[] list = serverControl.listHeuristicRolledBackTransactions();
                reportListOfString(context, list);
            } else if (COMMIT_PREPARED_TRANSACTION.equals(operationName)) {
                transactionValidator.validate(operation);
                String txId = operation.require(TRANSACTION_AS_BASE_64).asString();
                boolean committed = serverControl.commitPreparedTransaction(txId);
                context.getResult().set(committed);
            } else if (ROLLBACK_PREPARED_TRANSACTION.equals(operationName)) {
                transactionValidator.validate(operation);
                String txId = operation.require(TRANSACTION_AS_BASE_64).asString();
                boolean committed = serverControl.rollbackPreparedTransaction(txId);
View Full Code Here

      HornetQServerControl serverControl = createManagementControl();

      sendLocator.close();
      receiveLocator.close();

      boolean success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid));

      success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid));

      System.out.println("HornetQServerControlTest.testCommitPreparedTransactions");
   }
View Full Code Here

      sendLocator.close();
      receiveLocator.close();

      boolean success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid));

      success = serverControl.commitPreparedTransaction(XidImpl.toBase64String(xid));

      System.out.println("HornetQServerControlTest.testCommitPreparedTransactions");
   }
   // Package protected ---------------------------------------------
View Full Code Here

            } else if (LIST_HEURISTIC_ROLLED_BACK_TRANSACTIONS.equals(operationName)) {
                String[] list = serverControl.listHeuristicRolledBackTransactions();
                reportListOfStrings(context, list);
            } 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)) {
                String txId = TRANSACTION_AS_BASE_64.resolveModelAttribute(context, operation).asString();
                boolean committed = serverControl.rollbackPreparedTransaction(txId);
                context.getResult().set(committed);
View Full Code Here

      {
         server.start();

         HornetQServerControl jmxServer = ManagementControlHelper.createHornetQServerControl(mbeanServer);

         Assert.assertFalse(jmxServer.commitPreparedTransaction("Nananananana"));
      }
      finally
      {
         if (server.isStarted())
         {
View Full Code Here

         Assert.assertEquals(0, jmxServer.listHeuristicCommittedTransactions().length);
         Assert.assertEquals(0, jmxServer.listHeuristicRolledBackTransactions().length);

         if (isCommit)
         {
            jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid));
         }
         else
         {
            jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
         }
View Full Code Here

         Assert.assertEquals(1, preparedTransactions.length);
         System.out.println(preparedTransactions[0]);

         if (isCommit)
         {
            jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid));
         }
         else
         {
            jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
         }
View Full Code Here

         Assert.assertEquals(1, preparedTransactions.length);
         System.out.println(preparedTransactions[0]);

         if (heuristicCommit)
         {
            jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid));
         }
         else
         {
            jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
         }
View Full Code Here

         Assert.assertEquals(1, preparedTransactions.length);
         System.out.println(preparedTransactions[0]);

         if (heuristicCommit)
         {
            jmxServer.commitPreparedTransaction(XidImpl.toBase64String(xid));
         }
         else
         {
            jmxServer.rollbackPreparedTransaction(XidImpl.toBase64String(xid));
         }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.