1 2 Previous Next 17 Replies Latest reply on Jul 11, 2014 9:37 AM by lauradp Go to original post
      • 15. Re: Some questions about QueueBrowsers
        lauradp

        Thanks for your answer,

        You mean that I cannot edit any property of jms messages using QueueControl while they are in Schedule and that I cannot delete them before they are put in delivery?

         

        Laura

         

        UPDATE

         

        I am not able to delete scheduled messages from the queue by Id or custom properties, but only using a null filter. Unfortunately providing a null filter to QueueControl.removeMessages will remove all messages

         

        How should I write the filter for removing a scheduled message by id?

        • 16. Re: Some questions about QueueBrowsers
          jbertram

          You mean that I cannot edit any property of jms messages using QueueControl while they are in Schedule and that I cannot delete them before they are put in delivery?

          In my previous comment I was specifically referring to org.hornetq.core.management.impl.QueueControlImpl#changeMessagePriority.  I'm not 100% sure whether or not you could edit any property.

           

          How should I write the filter for removing a scheduled message by id?

          Here's an idea...You could set your own unique ID on each message you send and then use that property as the basis for your filter.

          • 17. Re: Some questions about QueueBrowsers
            lauradp

            Hi Justin,

            Filters on custom properties works, thanks a lot!

             

            Now I'm trying to set consumer's window.

             

            Laura

            1 2 Previous Next