Package org.activemq.service

Examples of org.activemq.service.QueueMessageContainer.addMessage()


        //ensure a matching container exists for the destination
        getContainer(((ActiveMQDestination) message.getJMSDestination()).getPhysicalName());
        Set set = destinationMap.get(message.getJMSActiveMQDestination());
        for (Iterator i = set.iterator();i.hasNext();) {
            QueueMessageContainer container = (QueueMessageContainer) i.next();
            container.addMessage(message);
            // Once transaction has completed.. dispatch the message.
            TransactionManager.getContexTransaction().addPostCommitTask(new TransactionTask(){
                public void execute() throws Throwable {
                    dispatcher.wakeup();
                    updateSendStats(client, message);
View Full Code Here


     * @throws JMSException
     */
    public void sendToDeadLetterQueue(String deadLetterName,ActiveMQMessage message) throws JMSException{
        QueueMessageContainer container = (QueueMessageContainer)getContainer(deadLetterName);
        container.setDeadLetterQueue(true);
        container.addMessage(message);
        dispatcher.wakeup();
    }
}
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.