Package com.sun.messaging.jmq.jmsserver.data

Examples of com.sun.messaging.jmq.jmsserver.data.TransactionUID.longValue()


                  try {                       
                        TransactionUID nextid = new TransactionUID();
                        doStart(nextid, conlist, con,
                            type, xid, sessionLess, lifetime, 0,
                            xaFlags, PacketType.START_TRANSACTION, replay, msg.getSysMessageID().toString());
                        nextTxnID = nextid.longValue();
                    } catch (Exception ex) {
                        status = Status.ERROR;
                        logger.logStack(Logger.ERROR,
                               BrokerResources.E_INTERNAL_BROKER_ERROR,
                               ex.toString() + ": TUID=" + id + " Xid=" + xid, ex);
View Full Code Here


        TransactionUID nextid = new TransactionUID();
        doStart(nextid, conlist, con, AutoRollbackType.NOT_PREPARED,
            xid, false, 0, 0, xaFlags,
            PacketType.START_TRANSACTION, false, msg
                .getSysMessageID().toString());
        nextTxnID = nextid.longValue();
      } catch (Exception ex) {
        status = Status.ERROR;
        logger.logStack(Logger.ERROR,
            BrokerResources.E_INTERNAL_BROKER_ERROR, ex.toString()
                + ": TUID=" + id + " Xid=" + xid, ex);
View Full Code Here

                if (Globals.txnLogEnabled() && (cLogRecordCount > 0) ) {
                    // Log all acks for consuming txn
                    ByteArrayOutputStream bos = new ByteArrayOutputStream(
                        (cLogRecordCount * (32 + SysMessageID.ID_SIZE + 8)) + 12);
                    DataOutputStream dos = new DataOutputStream(bos);
                    dos.writeLong(tid.longValue()); // Transaction ID (8 bytes)
                    dos.writeInt(cLogRecordCount); // Number of acks (4 bytes)
                    for (int i = 0; i < cLogRecordCount; i++) {
                        String dst = (String)cLogDstList.get(i);
                        dos.writeUTF(dst); // Destination
                        SysMessageID sysid = (SysMessageID)cLogMsgList.get(i);
View Full Code Here

  Enumeration e = transactions.elements();

  int i = 0;
  while (e.hasMoreElements()) {
      TransactionUID tid = (TransactionUID)e.nextElement();
      long    txnID = tid.longValue();

      ids[i] = Long.toString(txnID);

      i++;
  }
View Full Code Here

  Enumeration e = transactions.elements();

  int i = 0;
  while (e.hasMoreElements()) {
      TransactionUID tid = (TransactionUID)e.nextElement();
      long    txnID = tid.longValue();
      String id;

      try  {
          id = Long.toString(txnID);
View Full Code Here

        ClusterTxnInquiryInfo cii = null;
        TransactionBroker txnhome = null;
        while ( itr.hasNext()) {
            tid = (TransactionUID)itr.next();
            txnhome = translist.getRemoteTransactionHomeBroker(tid);
            cii = ClusterTxnInquiryInfo.newInstance(Long.valueOf(tid.longValue()),
                              ((txnhome == null) ? null:txnhome.getBrokerAddress()), null);
            if (DEBUG_CLUSTER_TXN) {
            logger.log(Logger.INFO, "Sending transaction inquiry: " + cii + " to "+broker);
            }
View Full Code Here

      props.put("JMQStatus", getErrorReplyStatus(be));
      throw new JMSServiceException(errStr, be, props);
  }

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQTransactionID", txnUID.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
View Full Code Here

      props.put("JMQStatus", getErrorReplyStatus(be));
      throw new JMSServiceException(errStr, be, props);
  }

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQTransactionID", txnUID.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
View Full Code Here

      props.put("JMQStatus", getErrorReplyStatus(be));
      throw new JMSServiceException(errStr, be, props);
  }

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQTransactionID", txnUID.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
View Full Code Here

      props.put("JMQStatus", getErrorReplyStatus(be));
      throw new JMSServiceException(errStr, be, props);
  }

  props.put("JMQStatus", JMSServiceReply.Status.OK);
  props.put("JMQTransactionID", txnUID.longValue());
  reply = new JMSServiceReply(props, null);

  return (reply);
    }
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.