Examples of removeMessage()


Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

        SysMessageID sysMsgID = SysMessageID.get(msgID);

                    PacketReference pr = Destination.get(sysMsgID);

        if (pr != null)  {
            d.removeMessage(sysMsgID, RemoveReason.REMOVED_OTHER);
        } else  {
      /*
                        errMsg= rb.getString(rb.X_MSG_NOT_FOUND, msgID);
      */
                        errMsg= "Could not locate message "
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                            r1 =s.ackMessage(intid, sysid, id, remoteNotified, true);
                            if (r1 != null) {
                                if (fi.FAULT_INJECTION) {
                                    fi.checkFaultAndExit(FaultInjection.FAULT_TXN_COMMIT_1_7, null, 2, false);
                                }
                                dst.removeMessage(ref.getSysMessageID(),
                                    RemoveReason.ACKNOWLEDGED);
                            } else {
                                s = Session.getSession(intid);
                            }
                        }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                            // to retrieve the message and acknowledge it
                            // with the stored UID
                            try {
                                if (ref.acknowledged(intid, sid,
                                    true, true, id, remoteNotified, true)) {
                                    dst.removeMessage(ref.getSysMessageID(),
                                        RemoveReason.ACKNOWLEDGED);
                                }
                            } catch (BrokerException ex) {
                                // XXX improve internal error
                                logger.log(Logger.WARNING,"Internal error", ex);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

            }
            PacketReference ref = Destination.get(sysid);
            if (ref == null) continue;
            DestinationUID duid = ref.getDestinationUID();
            Destination d = Destination.getDestination(duid);
            d.removeMessage(sysid, RemoveReason.ROLLBACK);
        }

        // remove from our active connection list
        if (conlist != null) {
            conlist.remove(id);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                    "BrokerConsumers.forwardMessageToRemote(): "+ref+", ignore removed consumer: "+consumer);
                    }
                    try {
                        if (ref.acknowledged(uid, sid, !uid.isDupsOK(), false)) {
                            Destination d=Destination.getDestination(ref.getDestinationUID());
                            d.removeMessage(ref.getSysMessageID(), RemoveReason.ACKNOWLEDGED);
                        }
                    } catch (Exception e) {
                        logger.logStack(Logger.WARNING,
                        "Unable to cleanup message "+ref.getSysMessageID()+" for closed consumer "+uid, e);
                    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                com.sun.messaging.jmq.jmsserver.core.ConsumerUID uid = value.getConsumerUID();
                if (sid== null || sid == uid) {
                    try {
                        if (ref.acknowledged(uid, sid, !uid.isDupsOK(), false)) {
                            Destination d=Destination.getDestination(ref.getDestinationUID());
                            d.removeMessage(ref.getSysMessageID(), RemoveReason.ACKNOWLEDGED);
                        }
                    } catch (Exception e) {
                        logger.logStack(Logger.WARNING,
                        "Unable to cleanup message "+ref.getSysMessageID()+logstrop, e);
                    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

                        fi.checkFaultAndExit(
                           FaultInjection.FAULT_MSG_REMOTE_ACK_HOME_C_TXNCOMMIT_1_7,
                           null, 2, false);
                    }
                    Destination d=Destination.getDestination(ref.getDestinationUID());
                    d.removeMessage(ref.getSysMessageID(),
                      RemoveReason.ACKNOWLEDGED);
                }
            } catch (Exception ex) {
                logger.logStack(Logger.WARNING,
                       "Unable to process acknowledgement:["+id+","+uid+"]", ex);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

            Destination d = null;
            itr = cleanupDests.iterator();
            while (itr.hasNext()) {
                try {
                    d = (Destination)itr.next();
                    d.removeMessage(ref.getSysMessageID(), null);
                } catch (Throwable e) {
                    Object[] args = { ref.getSysMessageID(),
                                      (sender == null ? "":sender),
                                      d, targetVector.toString(), e.toString() };
                    String emsg = Globals.getBrokerResources().getKString(
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

      dstLoadedSet.add(dst); // Keep track of what has been loaded
    }

    logger.log(Logger.FORCE, Globals.getBrokerResources().getKString(
                   BrokerResources.I_RM_MSG_ON_REPLAY_MSG_REMOVAL, mid, dst));
        dst.removeMessage(mid, RemoveReason.REMOVED_OTHER);

    if (msgStore.containsMessage(did, mid)) {
      msgStore.removeMessage(did, mid, false);
    }
   
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.removeMessage()

      SysMessageID sysMsgID = SysMessageID.get(messageID);
      PacketReference pr = Destination.get(sysMsgID);

      if (pr != null)  {
                d.removeMessage(sysMsgID, RemoveReason.REMOVED_OTHER);
          logger.log(Logger.INFO, "Deleted from destination "
      + destinationName
      + " message with ID: "
      + messageID);
            } else  {
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.