1 2 Previous Next 17 Replies Latest reply on Jul 11, 2014 9:37 AM by Laura delli Paoli

    Some questions about QueueBrowsers

    Laura delli Paoli Master

      Hello everybody,

      I added some messages to a queue with a "_HQ_SCHED_DELIVERY" property.

      Then I wrote a QueueBrowser that lists all messages in the queue, but I get a not null result only if alla consumers in the queue are turned off (even if they were iddle because of "_HQ_SCHED_DELIVERY" property).

      (Question #1) How can I have messages listed when consumers are linstening on the queue?

       

      Given a messageId I run the following code to update message priority:

       

      message.setJMSPriority(newPriority.intValue());

      trace.debug("updatedPriority of message " + messageId);

      trace.info("new priority: " + message.getJMSPriority());

       

      but if I list messages in the queue I read the old priority.

      (Question #2) How can I update message properties in the QueueBrowser  scope?

       

      Thanks

      Laura

        1 2 Previous Next