Package org.exolab.jms.messagemgr

Examples of org.exolab.jms.messagemgr.PersistentMessageHandle


        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


                int priority = set.getInt(4);
                long acceptedTime = set.getLong(5);
                long sequenceNumber = set.getLong(6);
                long expiryTime = set.getLong(7);
                boolean delivered = (set.getInt(8) == 0) ? false : true;
                MessageHandle handle = new PersistentMessageHandle(
                        messageId, priority, acceptedTime, sequenceNumber,
                        expiryTime, dest, consumer);
                handle.setDelivered(delivered);
                result.add(handle);
            }
        } catch (SQLException exception) {
            throw new PersistenceException(
                "Failed to get message handles for destination=" +
View Full Code Here

                String messageId = set.getString(1);
                int priority = set.getInt(3);
                long acceptedTime = set.getLong(4);
                long sequenceNumber = set.getLong(5);
                long expiryTime = set.getLong(6);
                PersistentMessageHandle handle = new PersistentMessageHandle(
                        messageId, priority, acceptedTime, sequenceNumber,
                        expiryTime, destination);
                result.add(handle);
            }
        } catch (SQLException exception) {
View Full Code Here


        for (int i = 0; i < messages.length; ++i) {
            MessageImpl msg = messages[i];
            addMessage(msg, _queue1);
            MessageHandle handle = new PersistentMessageHandle(msg,
                                                               _queue1.getName());
            _adapter.addMessageHandle(_connection, handle);

            addMessage(msg, _topic1);
            handle = new PersistentMessageHandle(msg, "sub1");
            _adapter.addMessageHandle(_connection, handle);
        }

        addUser("admin", "openjms");
        addUser("user1", "secret");
View Full Code Here

TOP

Related Classes of org.exolab.jms.messagemgr.PersistentMessageHandle

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.