Package com.sun.messaging.jmq.util

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


                    pstmt.setLong( 1, id );
                    pstmt.setInt( 2, type );
                    pstmt.setInt( 3, state );
                    pstmt.setInt( 4, txnState.getType().intValue() );

                    JMQXid jmqXid = txnState.getXid();
                    if ( jmqXid != null ) {
                        pstmt.setString( 5, jmqXid.toString() );
                    } else {
                        pstmt.setNull( 5, Types.VARCHAR );
                    }

                    Util.setObject( pstmt, 6, txnState );
View Full Code Here


                pstmt.setLong( 1, id );
                pstmt.setInt( 2, type );
                pstmt.setInt( 3, txnState.getState() );
                pstmt.setInt( 4, txnState.getType().intValue() );

                JMQXid jmqXid = txnState.getXid();
                if ( jmqXid != null ) {
                    pstmt.setString( 5, jmqXid.toString() );
                } else {
                    pstmt.setNull( 5, Types.VARCHAR );
                }

                Util.setObject( pstmt, 6, txnState );
View Full Code Here

  return (ts.getUser());
    }

    public static String getXID(TransactionUID tid)  {
  TransactionList tl = Globals.getTransactionList();
  JMQXid xid;

  if (tl == null)  {
      return (null);
  }

  xid = tl.UIDToXid(tid);

  if (xid == null)  {
      return (null);
  }

  return (xid.toString());
    }
View Full Code Here

      if (ts.getState() != TransactionState.PREPARED)  {
          throw new Exception(rb.getString(rb.E_TRANSACTION_NOT_PREPARED, tid));
      }

      JMQXid xid = tl.UIDToXid(tid);

      if (xid == null) {
          throw new Exception(rb.getString(rb.E_INTERNAL_BROKER_ERROR,
        "Could not find Xid for " + tid));
      }
View Full Code Here

        if (_logger.isLoggable(Level.FINE)){
        _logger.fine(_lgrPrefix+"("+this.hashCode()+") Commit  "+printXid(foreignXid)+" (onePhase="+onePhase+")");
        }
     
        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);
       
        if (Debug.debug) {
          Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:commit:onePhase="+onePhase+"\txid=\n"+jmqXid.toString());
        }
       
        // HACC
    if (this._session.isRollbackOnly) {
       Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:prepare:forcing Rollback due to:" + this._session.rollbackCause.getMessage());
View Full Code Here

        if (_logger.isLoggable(Level.FINE)){
        _logger.fine(_lgrPrefix+"XAResourceImpl ("+this.hashCode()+") End     "+printXid(foreignXid)+printFlags(flags));
        }
     
        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);

        if (Debug.debug) {
            Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:end:flags="+flags+"\txid=\n"+jmqXid.toString());
        }
       
        try {
            //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:end:using 0 as txnID");
            //End **has** to be using the same conn/sess as start
View Full Code Here

        //convert to jmq xid
        //JMQXid jmqXid = new JMQXid(foreignXid);
        //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:forget:txid=\n"+jmqXid.toString());
     
      // Despite the above, clean up currentJMQXid and the XAResourceMap
        JMQXid jmqXid = new JMQXid(foreignXid);       
      XAResourceMap.unregister(jmqXid);
        if (currentJMQXid!=null){
          if (currentJMQXid.equals(jmqXid)){
            currentJMQXid=null;
                connectionConsumer = null;
View Full Code Here

        }
     
        //JMS does not do RDONLY transactions - right?
        int result = XA_OK;
        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);
       
        if (Debug.debug) {
          Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:prepare:txid=\n"+jmqXid.toString());
        }
       
        try {

            // HACC
View Full Code Here

        if (_logger.isLoggable(Level.FINE)){
        _logger.fine(_lgrPrefix+"("+this.hashCode()+") Rollback  "+printXid(foreignXid)+")");
        }
     
        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);
       
        if (Debug.debug) {
          Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:rollback:txid=\n"+jmqXid.toString());
        }
         
        try {
            try {
                //Re-open if needed
View Full Code Here

        if (_logger.isLoggable(Level.FINE)){
        _logger.fine(_lgrPrefix+"("+this.hashCode()+") Start   "+printXid(foreignXid)+printFlags(flags));
        }
     
        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);

        if (lastInternalRB) {
            lastInternalRBCache.remove(this);
            lastInternalRB = false;
        }

        if (Debug.debug) {
          Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:start:flags="+flags+"\txid=\n"+jmqXid.toString());
        }
       
        try {
            _session.switchOnXATransaction();
            _transaction = _session.transaction;
View Full Code Here

TOP

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

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.