activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RavshanKos <Ravshan...@gmail.com>
Subject Re: Expired messages not moved to dead letter queue.
Date Tue, 29 Jul 2008 08:41:12 GMT


RavshanKos wrote:
> 
> 
> mlukica wrote:
>> 
>> Check:
>> http://issues.apache.org/activemq/browse/AMQ-1796
>> 
> I switched to 5.2-SNAPSHOT, but this didn't help.
> 
> 
I've find workaround of this issue.
I've scheduled browsing of needed queue with javax.jms.QueueBrowser:

        logger.debug("Queue '" + queueName + "' pooled.");
        
        Enumeration<Message> messages = browser.getEnumeration();
        if (messages.hasMoreElements() == true) {
            logger.debug("There are messages in '" + queueName + "' queue:
");
            int i = 1;
            while (messages.hasMoreElements() == true) {
                Message msg = messages.nextElement();
                logger.debug(i + ". " + msg);
                i++;
            }
        }

When it browse queue with expired messages, this messages isn't in
enumeration 'messages', they moved in it's DLQ, as needed...
I've checked it on AMQ-5.1.0 - all works fine.
On AMQ-5.2-SNAPSHOT messages removed from queue where they expired, but
didn't appear in it's DLQ... they just disappear...


-- 
View this message in context: http://www.nabble.com/Expired-messages-not-moved-to-dead-letter-queue.-tp18608013p18707768.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message