Package org.activemq.message

Examples of org.activemq.message.XATransactionInfo


  /**
   * Get's the resource manager id.
   */
  private String determineResourceManagerId() throws JMSException {

    XATransactionInfo info = new XATransactionInfo();
    info.setType(TransactionInfo.GET_RM_ID);

    ResponseReceipt receipt = (ResponseReceipt) syncSendRequest(info);
    String rmId = (String) receipt.getResult();
    assert rmId != null;
    return rmId;
View Full Code Here


  /**
   * Get's the resource manager id.
   */
  private String determineResourceManagerId() throws JMSException {

    XATransactionInfo info = new XATransactionInfo();
    info.setType(TransactionInfo.GET_RM_ID);

    ResponseReceipt receipt = (ResponseReceipt) syncSendRequest(info);
    String rmId = (String) receipt.getResult();
    assert rmId != null;
    return rmId;
View Full Code Here

  /**
   * Get's the resource manager id.
   */
  private String determineResourceManagerId() throws JMSException {

    XATransactionInfo info = new XATransactionInfo();
    info.setType(TransactionInfo.GET_RM_ID);

    ResponseReceipt receipt = (ResponseReceipt) syncSendRequest(info);
    String rmId = (String) receipt.getResult();
    assert rmId != null;
    return rmId;
View Full Code Here

                            MessageAck ack = (MessageAck) packet;
                            consumeMessageAck(ack);
                            break;
                        }
                        case Packet.XA_TRANSACTION_INFO : {
                            XATransactionInfo info = (XATransactionInfo) packet;
                            consumeXATransactionInfo(info);
                            break;
                        }
                        case Packet.TRANSACTION_INFO : {
                            TransactionInfo info = (TransactionInfo) packet;
View Full Code Here

  /**
   * Get's the resource manager id.
   */
  private String determineResourceManagerId() throws JMSException {

    XATransactionInfo info = new XATransactionInfo();
    info.setType(TransactionInfo.GET_RM_ID);

    ResponseReceipt receipt = (ResponseReceipt) syncSendRequest(info);
    String rmId = (String) receipt.getResult();
    assert rmId != null;
    return rmId;
View Full Code Here

                            MessageAck ack = (MessageAck) packet;
                            consumeMessageAck(ack);
                            break;
                        }
                        case Packet.XA_TRANSACTION_INFO : {
                            XATransactionInfo info = (XATransactionInfo) packet;
                            consumeXATransactionInfo(info);
                            receiptRequired=info.isReceiptRequired();
                            break;
                        }
                        case Packet.TRANSACTION_INFO : {
                            TransactionInfo info = (TransactionInfo) packet;
                            consumeTransactionInfo(info);
View Full Code Here

        } else {
            //TODO cache the known xids so we don't keep recreating this one??
            x = new ActiveMQXid(xid);
        }

        XATransactionInfo info = new XATransactionInfo();
        info.setXid(x);
        info.setType(XATransactionInfo.PRE_COMMIT);

        try {
            if( log.isDebugEnabled() )
                log.debug("Preparing XA transaction: "+x);
           
View Full Code Here

            x = activeXid;
        } else {
            x = new ActiveMQXid(xid);
        }

        XATransactionInfo info = new XATransactionInfo();
        info.setXid(x);
        info.setType(XATransactionInfo.ROLLBACK);

        try {
            if( log.isDebugEnabled() )
                log.debug("Rollingback XA transaction: "+x);
           
View Full Code Here

            throw new XAException(XAException.XAER_PROTO);
        } else {
            x = new ActiveMQXid(xid);
        }

        XATransactionInfo info = new XATransactionInfo();
        info.setXid(x);
        info.setType(onePhase ? XATransactionInfo.COMMIT_ONE_PHASE : XATransactionInfo.COMMIT);

        try {
            if( log.isDebugEnabled() )
                log.debug("Committing XA transaction: "+x);
           
View Full Code Here

            x = activeXid;
        } else {
            x = new ActiveMQXid(xid);
        }

        XATransactionInfo info = new XATransactionInfo();
        info.setXid(x);
        info.setType(XATransactionInfo.FORGET);

        try {
            if( log.isDebugEnabled() )
                log.debug("Forgetting XA transaction: "+x);
           
View Full Code Here

TOP

Related Classes of org.activemq.message.XATransactionInfo

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.