Package org.activemq.service.impl

Examples of org.activemq.service.impl.MessageEntry


    public synchronized void addMessage(ActiveMQMessage message) throws JMSException {
        if (log.isDebugEnabled()) {
            log.debug("Adding message to container: " + message);
        }
        MessageEntry entry = new MessageEntry(message);
        Object sequenceNumber = null;
        synchronized (this) {
            sequenceNumber = new Long(++lastSequenceNumber);
        }
        try {
View Full Code Here


    public synchronized ActiveMQMessage getMessage(MessageIdentity identity) throws JMSException {
        String messageID = identity.getMessageID();
        ActiveMQMessage message = null;
        try {
            MessageEntry entry = (MessageEntry) getMessageTable().find(messageID);
            if (entry != null) {
                message = entry.getMessage();
                message.getJMSMessageIdentity().setSequenceNumber(identity.getSequenceNumber());
            }
        }
        catch (IOException e) {
            throw JMSExceptionHelper.newJMSException("Failed to get message for messageID: " + messageID + " " + e, e);
View Full Code Here

TOP

Related Classes of org.activemq.service.impl.MessageEntry

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.