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

Examples of com.sun.messaging.jmq.jmsserver.data.TransactionWorkMessage


            "transacted message removed too early " + sysid);
        continue;
      }
      try {
        if (ref.isPersistent()) {
          TransactionWorkMessage txnWorkMessage = new TransactionWorkMessage();
          Destination dest = ref.getDestination();
          txnWorkMessage.setDestUID(dest.getDestinationUID());
          txnWorkMessage.setPacketReference(ref);
         
          txnWork.addMesage(txnWorkMessage);
        }

      } catch (Exception ex) {
View Full Code Here


    TransactionWork txnWork = baseTxn.getTransactionWork();
    List<TransactionWorkMessage> sentMessages = txnWork.getSentMessages();
    if (sentMessages != null) {
      Iterator<TransactionWorkMessage> iter = sentMessages.iterator();
      while (iter.hasNext()) {
        TransactionWorkMessage twm = iter.next();
        sentMessagesNeedLogging |= calculateStoredRouting(twm);
      }
    }
    boolean ackedMessagesNeedLogging = false;
    List<TransactionWorkMessageAck> ackedMessages = txnWork
View Full Code Here

  public void readFromBytes(byte[] data) throws IOException, BrokerException {
    ByteArrayInputStream bais = new ByteArrayInputStream(data);
    DataInputStream dis = new DataInputStream(bais);
   
    dis.skip(2);
    message=new TransactionWorkMessage();
    message.readWork(dis);   
   
    dis.close();
    bais.close();
  }
View Full Code Here

  }

  void messageListLogged(List<TransactionWorkMessage> twms) {
    Iterator<TransactionWorkMessage> iter = twms.iterator();
    while (iter.hasNext()) {
      TransactionWorkMessage twm = iter.next();
      messageLogged(twm);
    }

  }
View Full Code Here

    if (Store.getDEBUG()) {
      logger.log(Logger.INFO, getPrefix() + " replaySentMessages");
    }

    for (int i = 0; i < sentMessages.size(); i++) {
      TransactionWorkMessage workMessage = sentMessages.get(i);
      replaySentMessage(workMessage, dstLoadedSet);
    }
  }
View Full Code Here

        logger.log(Logger.DEBUG, getPrefix() + " convertWork ");
      }
      List<TransactionWorkMessage> sentMsgs = work.getSentMessages();
      Iterator<TransactionWorkMessage> sentIter = sentMsgs.iterator();
      while (sentIter.hasNext()) {
        TransactionWorkMessage msg = sentIter.next();
        if (DEBUG) {
          logger.log(Logger.DEBUG, getPrefix() + " convert sent msg "+msg);
        }
        DestinationUID duid = msg.getDestUID();
        int type = (duid.isQueue() ? DestType.DEST_TYPE_QUEUE
            : DestType.DEST_TYPE_TOPIC);

        // make sure destination exists
        // ( it may have been removed on load if it just contained
        // messages in a transaction)
        Destination dest = Destination.getDestination(duid.getName(),
            type, true, true);

        Packet message = msg.getMessage();
        ConsumerUID[] iids = msg.getStoredInterests();
        //if (iids != null)
        if(false){
          int[] states = new int[iids.length];
          for (int i = 0; i < iids.length; i++) {
            states[i] = 0;
View Full Code Here

    if (Globals.isNewTxnLogEnabled() && TransactionLogManager.logNonTransactedMsgSend  && !TransactionLogManager.isReplayInProgress()) {
      long tid = message.getTransactionID();
      if (tid <= 0) {

        TransactionWorkMessage twm = new TransactionWorkMessage(dst,
            message, iids);
        parent.logNonTxnMessage(twm);
        // set sync to false as we have already logged
        sync=false;
      }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.data.TransactionWorkMessage

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.