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

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


    for (int i = 0; i < txnWork.numSentMessages(); i++) {

      TransactionWorkMessage msg = txnWork.getSentMessages().get(i);
      Packet packet = msg.getMessage();

      DestinationUID duid = msg.getDestUID();

      logger.log(Logger.DEBUG,
          " handleSentMessages: duid= "+duid);
           
      PacketReference pr = PacketReference.createReference(packet, duid,
          null);
      Destination d = Destination.getDestination(duid);
      if (d == null) {
        // Could be an auto-created dest that was reaped on load.
        // Lets recreate it here.
        try {
          int type = (duid.isQueue() ? DestType.DEST_TYPE_QUEUE
              : DestType.DEST_TYPE_TOPIC);
          d = Destination.getDestination(duid.getName(), type, true,
              true);
        } catch (IOException e) {
          throw new BrokerException("Could not recreate destination "
              + duid, e);
        }
View Full Code Here


  static void handleMessageAcks(TransactionList transactionList,TransactionUID tid, TransactionWork txnWork)
      throws BrokerException {
    for (int i = 0; i < txnWork.numMessageAcknowledgments(); i++) {
      TransactionWorkMessageAck msgAck = txnWork
          .getMessageAcknowledgments().get(i);     
      DestinationUID destID = msgAck.getDestUID();
      handleAck(transactionList,tid, destID, msgAck.getSysMessageID(), msgAck.getConsumerID());

    }
  }
View Full Code Here

  return (d);
    }

    public static DestinationUID getDestinationUID(ConsumerUID cid)  {
        Consumer con = Consumer.getConsumer(cid);
        DestinationUID id = null;

  if (con != null)  {
            id = con.getDestinationUID();
  }
View Full Code Here

      return (null);
  }

  return(d.getDestinationName());
  */
  DestinationUID id = ConsumerUtil.getDestinationUID(cid);

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

  return(id.getName());
    }
View Full Code Here


    public Object readResolve() throws ObjectStreamException {

        try {
            DestinationUID duid = DestinationUID.getUID(destName,
                   isQueue);
            com.sun.messaging.jmq.jmsserver.core.Subscription
                 obj = Subscription.subscribe(durableName,
                     clientID, selstr, duid,
                     noLocalDelivery, false, false);
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
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.