ActiveMQ
  1. ActiveMQ
  2. AMQ-2940

Add a way to select and delete scheduled/delayed messages with a message selector

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.4.2
    • Component/s: Broker, JMX
    • Labels:
      None

      Description

      The atm only way to interact with scheduled/delayed messages, the JobSchedulerView mbean, does not provide a way to get or delete messages that match a specific selector, e.g. something that behaves similar to the Session.createBrowser(queue, messageSelector) method.
      This means that for instance in order to delete all scheduled messages with a specific custom property, one has to

      1. get all messages (which might not even work as the mbean doesn't stream)
      2. determine if the mbean matches the selector locally and if then hit the removeJob(id) mbean operation

      which is really inefficient.

        Issue Links

          Activity

          Hide
          Timothy Bish added a comment -

          The fix for AMQ-2941 allows the client to browse and delete scheduled Messages

          Show
          Timothy Bish added a comment - The fix for AMQ-2941 allows the client to browse and delete scheduled Messages
          Hide
          Timothy Bish added a comment -

          Fix by AMQ-2941

          Show
          Timothy Bish added a comment - Fix by AMQ-2941

            People

            • Assignee:
              Timothy Bish
              Reporter:
              Thomas Dudziak
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development