Package com.sun.messaging.jmq.util

Examples of com.sun.messaging.jmq.util.XidImpl


            xae.initCause(jmse);
            throw xae;
        } finally {
            // finish up this resource and any others joined to it in this transaction
            boolean throwExceptionIfNotFound = false;
            XidImpl savedXid = this.jmqXid;
            XAResourceForJMQ[] resources = XAResourceMapForRAMC.getXAResources(this.jmqXid,throwExceptionIfNotFound);
            for (int i = 0; i < resources.length; i++) {
              XAResourceForJMQ xari = resources[i];
              try {
          xari.clearTransactionInfo();
View Full Code Here


        //MQ does not support heuristically completed transaction branches
        //This is a NOP
        //convert to jmq xid
        //////JMQXid jmqXid = new JMQXid(foreignXid);
        //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:forget:txid=\n"+jmqXid.toString());
        XidImpl xidToForget = new XidImpl(foreignXid);
        XAResourceMapForRAMC.unregister(xidToForget);
        if (jmqXid!=null){
          if (jmqXid.equals(xidToForget)){
            clearTransactionInfo();
          }
View Full Code Here

            xae.initCause(jmse);
            throw xae;
        } finally {
            // finish up this resource and any others joined to it in this transaction
            boolean throwExceptionIfNotFound = false;
            XidImpl savedXid = this.jmqXid;
            XAResourceForJMQ[] resources = XAResourceMapForRAMC.getXAResources(this.jmqXid,throwExceptionIfNotFound);
            for (int i = 0; i < resources.length; i++) {
              XAResourceForJMQ xari = resources[i];
              try {
          xari.clearTransactionInfo();
View Full Code Here

            xae.initCause(jmse);
            throw xae;
        } finally {
            // finish up this resource and any others joined to it in this transaction
            boolean throwExceptionIfNotFound = false;
            XidImpl savedXid = this.jmqXid;
            XAResourceForJMQ[] resources = XAResourceMapForRAMC.getXAResources(this.jmqXid,throwExceptionIfNotFound);
            for (int i = 0; i < resources.length; i++) {
              XAResourceForJMQ xari = resources[i];
              try {
          xari.clearTransactionInfo();
View Full Code Here

        //MQ does not support heuristically completed transaction branches
        //This is a NOP
        //convert to jmq xid
        //////JMQXid jmqXid = new JMQXid(foreignXid);
        //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:forget:txid=\n"+jmqXid.toString());
        XidImpl xidToForget = new XidImpl(foreignXid);
        XAResourceMapForRAMC.unregister(xidToForget);
        if (jmqXid!=null){
          if (jmqXid.equals(xidToForget)){
            try {
          clearTransactionInfo();
View Full Code Here

            }
          }
         
            // finish up this resource and any others joined to it in this transaction
            boolean throwExceptionIfNotFound = false;
            XidImpl savedXid = this.jmqXid;
            XAResourceForJMQ[] resources = XAResourceMapForRAMC.getXAResources(this.jmqXid,throwExceptionIfNotFound);
            for (int i = 0; i < resources.length; i++) {
              XAResourceForJMQ xari = resources[i];
              try {
          xari.clearTransactionInfo();
View Full Code Here

             xae.initCause(jse);
             throw xae;
         } finally {
           // finish up this resource and any others joined to it in this transaction
           boolean throwExceptionIfNotFound = false;
           XidImpl savedXid = this.mXid;
           DirectXAResource[] resources = DirectXAResourceMap.getXAResources(this.mXid,throwExceptionIfNotFound);
      for (int i = 0; i < resources.length; i++) {
        DirectXAResource xari = resources[i];
        try {
          xari.clearTransactionInfo();
View Full Code Here

        //XidImpl mqxid = new XidImpl(foreignXid);
        if (_logFINE){
            _loggerJX.warning(_lgrMID_INF+"forget()UNSUPPORTED"+
                    ":Xid="+foreignXid.toString());
         }
        XidImpl xidToForget = new XidImpl(foreignXid);
        DirectXAResourceMap.unregister(xidToForget);
        if (mXid!=null){
          if (mXid.equals(xidToForget)){
            try {
          clearTransactionInfo();
View Full Code Here

            throw xae;
        } finally {
            // finish up this resource and any others joined to it in this transaction
          boolean throwExceptionIfNotFound = false;
            DirectXAResource[] resources = DirectXAResourceMap.getXAResources(this.mXid,throwExceptionIfNotFound);
             XidImpl savedXid = this.mXid;
            for (int i = 0; i < resources.length; i++) {
              DirectXAResource xari = resources[i];
              try {
          xari.clearTransactionInfo();
        } catch (JMSException jmse) {
View Full Code Here

   */
  private void validateAndSaveXidTransactionID(Xid foreignXid, long transactionId) {
    assert transactionId != 0L;
    if ((this.mTransactionId == 0L) && (this.mXid == null)) {
      this.mTransactionId = transactionId;
      this.mXid = new XidImpl(foreignXid); // mqxid;
    } else {
      if (this.mXid.equals(foreignXid)) {
        if (this.mTransactionId != transactionId) {
          System.out.println("DXAR:start():Warning:" + "Received diff txId for same Xid:"
              + "switching transactionId:" + "\nDXAR TXid=" + this.mTransactionId + "\ngot  TXid="
              + transactionId + "\nFor   Xid=" + printXid(mXid));
          this.mTransactionId = transactionId;
        }
      } else {
        System.out
            .println("DXAR:start():Warning:" + "Received diff Xid for open txnId:"
                + "switching transactionId:" + "\nDXAR  Xid=" + printXid(mXid) + "\nDXAR TXid="
                + this.mTransactionId + "\ngot   Xid=" + printXid(foreignXid) + "\ngot  TXid="
                + transactionId);
        // remove transactionId and xid as it will be wrong if used
        this.mTransactionId = transactionId;
        this.mXid = new XidImpl(foreignXid); // mqxid;
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.util.XidImpl

Copyright © 2018 www.massapicom. 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.