Package org.exolab.jms.tools.migration.proxy

Examples of org.exolab.jms.tools.migration.proxy.MessageState


            adapter.addDurableConsumer(connection, destination.getName(), name);

        }

        while (iterator.hasNext()) {
            MessageState state = (MessageState) iterator.next();
            MessageImpl message = adapter.getMessage(connection,
                                                     state.getMessageId());
            PersistentMessageHandle handle =
                    new PersistentMessageHandle(message.getJMSMessageID(),
                                                message.getJMSPriority(),
                                                message.getAcceptedTime(),
                                                message.getSequenceNumber(),
                                                message.getJMSExpiration(),
                                                destination,
                                                name);
            handle.setDelivered(state.getDelivered());
            handle.add();
        }
        _database.commit();
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.tools.migration.proxy.MessageState

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.