Package com.sun.messaging.jmq.jmsserver.core

Examples of com.sun.messaging.jmq.jmsserver.core.DestinationUID


        String msg = getPrefix()
            + " convertLocalToTxnLogFormat: can not find packet for consumed msg"
            + mid + " in txn " + txnInfo;
        logger.log(Logger.WARNING, msg);
      } else {
        DestinationUID destUID = packRef.getDestination()
            .getDestinationUID();
        if (consumers != null) {
          for (int i = 0; i < consumers.size(); i++) {
            ConsumerUID cid = consumers.get(i);
            ConsumerUID storedcid = (ConsumerUID) cuidToStored
View Full Code Here


    // log or prepared msg store)
    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";
View Full Code Here

      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 {
          logger.log(Logger.WARNING, "Could not find packet for "
              + sid);
View Full Code Here

            Destination d = null;
            if (DestinationUID.isWildcard(destination)) {
                // retrieve the list of destinations
                pkt.setWildcard(true);
                // see if there are any destinations that match
                DestinationUID duid = DestinationUID.getUID(destination, type);
                List l = Destination.findMatchingIDs(duid);
                if (l.isEmpty()) {
                    notFound = true;
                }
View Full Code Here

          if (level.intValue() == REQUEST_CONSUMER_INFO) {
              String destName = (String)pktprops.get("JMQDestination");
              int destType = ((Integer)pktprops.get("JMQDestType")).intValue();
              Boolean offb = (Boolean)pktprops.get("JMQRequestOff");
              boolean off = (offb == null ? false:offb.booleanValue());
              DestinationUID duid = DestinationUID.getUID(destName, destType);
              if (off) {
                  con.removeConsumerInfoRequest(duid);
              } else {
                  con.addConsumerInfoRequest(duid);
              }
View Full Code Here

            assert pkt.getPacketType() == PacketType.DESTROY_DESTINATION_REPLY;

            Destination d =null;

            try {
                DestinationUID rmuid = DestinationUID.getUID(destination, DestType.isQueue(type));

                if (destination == null) {
                    throw new BrokerException(
                        Globals.getBrokerResources().getString(
                           BrokerResources.X_INTERNAL_EXCEPTION,
View Full Code Here

            // do nothing prevents failures with old brokers
        }


        try {
            DestinationUID dest = DestinationUID.getUID(destName, isQueue);
            if (durableName != null) {
                Subscription sub = Subscription.findCreateDurableSubscription
                       (clientID,durableName, dest, selstr, noLocalDelivery, false,  id);
                if (sub != null)
                    sub.setMaxNumActiveConsumers(sharedcnt);
View Full Code Here

    public static String getDestinationName(ProducerUID pid)  {
  Producer p = Producer.getProducer(pid);

  if (p != null)  {
      DestinationUID did = p.getDestinationUID();

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

      return(did.getName());
  }

        return (null);
    }
View Full Code Here

    public static String getDestinationType(ProducerUID pid)  {
  Producer p = Producer.getProducer(pid);

  if (p != null)  {
      DestinationUID did = p.getDestinationUID();
      Destination d = Destination.getDestination(p.getDestinationUID());

      if (d == null)  {
    return (null);
      }
View Full Code Here

      TransactionUID tid = remoteTxn.getTid();

   
      TransactionState state = remoteTxn.getTransactionState();
      TransactionAcknowledgement  tas[] = remoteTxn.getTxnAcks();
      DestinationUID  destIds[] = remoteTxn.getDestIds();
      msg = " loadTransactions: processing remote transaction " + tid + " state= "+state;
      logger.log(Logger.DEBUG, msg);
      BrokerAddress remoteTransactionHomeBroker = remoteTxn.getTxnHomeBroker();
     
      transactionList.logRemoteTransaction(tid, state, tas,
          remoteTransactionHomeBroker, true, true, false);
     
      for(int i=0;i<tas.length;i++)
      {
        TransactionAcknowledgement ta = tas[i];
        DestinationUID destId = destIds[i];
        unrouteLoadedTransactionAckMessage(destId,ta.getSysMessageID(),ta.getStoredConsumerUID());
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.core.DestinationUID

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.