Package com.sun.messaging.jmq.io

Examples of com.sun.messaging.jmq.io.SysMessageID


            MessageAckType ackType) throws JMSServiceException  {
  boolean validate = false;
        TransactionUID txnUID = null;
        int brokerAckType;
        int deliverCnt = -1;
  SysMessageID ids[] = null;
  ConsumerUID cids[] = null;
        Throwable deadThr = null;
  String deadComment = null;
  JMSServiceReply reply;
  HashMap props = new HashMap();
View Full Code Here


  boolean validate = false;
  long transactionId = -1;
        TransactionUID txnUID = null;
        int brokerAckType;
        int deliverCnt = -1;
  SysMessageID ids[] = null;
  ConsumerUID cids[] = null;
        Throwable deadThr = null;
  String deadComment = null;
  JMSServiceReply reply;
  HashMap props = new HashMap();
View Full Code Here

      throws BrokerException {
    // get messages for this txn
    List<SysMessageID> sentMessageIds = txnInfo.getPublishedMessages();
    Iterator<SysMessageID> msgIter = sentMessageIds.iterator();
    while (msgIter.hasNext()) {
      SysMessageID mid = msgIter.next();
      PacketReference packRef = Destination.get(mid);
      if (packRef == null) {
        String msg = getPrefix()
            + " convertLocalToTxnLogFormat: can not find packet for sent msg "
            + mid + " in txn " + txnInfo;
View Full Code Here

    HashMap cuidToStored = transactionList
        .retrieveStoredConsumerUIDs(txnInfo.tid);

    while (iter.hasNext()) {
      Map.Entry<SysMessageID, List<ConsumerUID>> entry = iter.next();
      SysMessageID mid = entry.getKey();
      List<ConsumerUID> consumers = entry.getValue();

      PacketReference packRef = Destination.get(mid);
      if (packRef == null) {
        String msg = getPrefix()
View Full Code Here

    Iterator<TransactionWorkMessage> sent = txnWork.getSentMessages()
        .iterator();
    while (sent.hasNext()) {
      TransactionWorkMessage twm = sent.next();
      DestinationUID duid = twm.getDestUID();
      SysMessageID mid = twm.getMessage().getSysMessageID();
      try {
        store.removeMessage(duid, mid, true);
      } catch (IOException e) {
        String msg = "Could not remove transacted sent message during txn conversion";
        logger.logStack(Logger.ERROR, msg, e);
View Full Code Here

      TransactionAcknowledgement[] txnAcks = al
          .toArray(new TransactionAcknowledgement[0]);

      DestinationUID[] destIds = new DestinationUID[txnAcks.length];
      for (int i = 0; i < txnAcks.length; i++) {
        SysMessageID sid = txnAcks[i].getSysMessageID();
        PacketReference p = Destination.get(sid);
        DestinationUID destID = null;
        if (p != null) {
          destID = p.getDestinationUID();
        } else {
View Full Code Here

                           ack = con.deliver(p);

         if (ack != null)  {
             long transactionId = ack.getTransactionId(),
             consumerId = ack.getConsumerId();
             SysMessageID sysMsgId = ack.getSysMessageID();
                         TransactionUID txnUID = null;
                         ConsumerUID conUID = null;

                   if (transactionId != 0)  {
                             txnUID = new TransactionUID(transactionId);
                   }

                   if (consumerId != 0)  {
                             conUID = new ConsumerUID(consumerId);
                   }

                               IMQConnection cxn = parent.checkConnectionId(ack.getConnectionId(), "Listener Thread");

                               SysMessageID ids[] = new SysMessageID[1];
                               //ids[0] = sysMsgId;
                               //ids[0] = ((Packet)p).getSysMessageID();
                               ids[0] = sysMsgId;
                               ConsumerUID cids[] = new ConsumerUID[1];
                               cids[0] = conUID;
View Full Code Here

        throws BrokerException, IOException
    {
        ArrayList returnlist = new ArrayList();
        Iterator itr = ids.iterator();
        while (itr.hasNext()) {
            SysMessageID id = (SysMessageID)itr.next();
            PacketReference ref = Destination.get(id);
            if (ref == null) continue;
            Packet realp = ref.getPacket();
            if (ref.isInvalid()) continue;
            Packet p = new Packet(false /* use direct buffers */);
 
View Full Code Here

    }

    public SysMessageID readPayloadSysMessageID() throws IOException {
        assert ( dis != null );

        SysMessageID sysid = new SysMessageID();
        sysid.readID(dis);
        return sysid;
    }
View Full Code Here

        AckEntryNotFoundException aee = new AckEntryNotFoundException(reason);

        byte[] buf = ackack.getPayload().array();
        ByteArrayInputStream bis = new ByteArrayInputStream(buf);
        DataInputStream dis = new DataInputStream(bis);
        SysMessageID sysid = null;
        ConsumerUID intid = null;
        try {
            for (int i = 0; i < cnt; i++) {
                sysid = new SysMessageID();
                sysid.readID(dis);
                intid =  ClusterConsumerInfo.readConsumerUID(dis);
                aee.addAckEntry(sysid, intid);
            }
        } catch (Exception e) {
            Globals.getLogger().logStack(Globals.getLogger().WARNING, e.getMessage(), e);
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.io.SysMessageID

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.