6 Replies Latest reply on Sep 29, 2010 11:24 AM by tomdzk

    How to look at scheduled messages in a queue

    tomdzk Newbie



      I'm trying to find a way to retrieve scheduled messages in a JMS queue by id (without consuming them). The two approaches I've tried so far, are:


      * QueueBrowser, e.g. session.createBrowser(queue, "JMSMessageID='ID:...")


      * Management API via JMS,  e.g. JMSManagementHelper.putOperationInvocation(request, "jms.queue.myQueue", "listMessages", "JMSMessageID='...'");


      Neither of these returns any scheduled messages, not even if I omit the selectors. Is there a way to retrieve scheduled messages from a queue other than manually filtering through the result of the listScheduledMessages operation ?