Examples of doRollback()


Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple.doRollback()

      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);

      if (tx.activated())
      {
        tx.doRollback();

        TxImporter.removeImportedTransaction(xid);
      }
      else
        throw new XAException(XAException.XA_RETRY);
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple.doRollback()

      TransactionImple tx = TxImporter.getImportedTransaction(xid);

      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);

      tx.doRollback();
     
      TxImporter.removeImportedTransaction(xid);
    }
    catch (XAException ex)
    {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple.doRollback()

      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);

      if (tx.baseXid() != null)
      {
        tx.doRollback();
       
        TxImporter.removeImportedTransaction(xid);
      }
      else
        throw new XAException(XAException.XA_RETRY);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

                         msgs == 0 && acks == 0) {
                        logger.log((DEBUG ? Logger.INFO:Logger.DEBUG),
                                    "Removing finished transaction " + tid);
                        TransactionHandler thandler = (TransactionHandler)
                            Globals.getPacketRouter(0).getHandler(PacketType.ROLLBACK_TRANSACTION);
                        thandler.doRollback(tid, null, null, state, null, null,
                                            RollbackReason.TAKEOVER_CLEANUP);
                        itr.remove();
                    } else if (realstate == TransactionState.ROLLEDBACK) {
                    }
                }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

                  if ( DEBUG ) {
                            logger.log(Logger.DEBUG,
                                "Rolling back " + tid + " in state " + ts);
                        }
                        try {
                            thandler.doRollback(tid, xid, null, ts, null,
                                                con, RollbackReason.ADMIN);
                        } catch (BrokerException e) {
                            status = Status.ERROR;
                            errMsg = e.getMessage();
                        }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

                if (DEBUG || DEBUG_TXN) {
                    logger.log(Logger.INFO, "Cleanup connection ["+getConnectionUID()+
                    "]: cleaning up transaction "+tid+"["+TransactionState.toString(tstate)+"]");
                }
                try {
                     rollbackHandler.doRollback(tid, ts.getXid(), null, ts, conlist,
                                   null, RollbackReason.CONNECTION_CLEANUP);
                } catch (Exception e) {
                     String[] args = { ""+tid+"["+TransactionState.toString(tstate)+"]",
                                       getConnectionUID().toString(), e.getMessage() };
                     logger.logStack(logger.WARNING,
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

                                          String.valueOf(ts.getCreationTime()),
                                          String.valueOf(ts.getDetachedTime()) };
                        Globals.getLogger().log(Logger.WARNING,
                        Globals.getBrokerResources().getKString(
                                BrokerResources.W_ROLLBACK_TIMEDOUT_DETACHED_TXN, args));
                        rbh.doRollback(tids[i], ts.getXid(), null, ts, null,
                                                null, RollbackReason.TIMEOUT);
                        removeDetachedTID(tids[i]);
                    } catch (Exception ex) {
                        Globals.getLogger().logStack(Logger.WARNING,
                               Globals.getBrokerResources().getKString(
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

          throw new Exception(rb.getString(rb.E_INTERNAL_BROKER_ERROR,
          "Could not locate Transaction Handler"));
      }

      if (rollback)  {
          thandler.doRollback(tid, xid, null, ts, null, null, RollbackReason.ADMIN);
      } else  {
    thandler.doCommit(tid, xid, new Integer(XAResource.TMNOFLAGS), ts, null,
        false, null, null);
      }
  } catch(Exception e)  {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollback()

          if (redeliver) {
              handler.redeliverUnacked(id, true, setRedeliver);
          }

          handler.doRollback(id, xid, xaFlags, ts, conlist, con,  RollbackReason.APPLICATION);
     }


     /**
      * Recover a transaction.
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.