Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-2911

Option to make all consumers retroactive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.6.0
    • Broker
    • None
    • Patch Available

    Description

      Our organisation uses ActiveMQ as part of our RadioVIS implementation. One feature we found that we found was missing was the ability to treat all consumers as if they were setting consumer.retroactive=true. i.e. when they connect to a topic, they are instantly sent the topic's last message.
      (We found it necessary to implement server side, as the clients come from a variety of third-party providers, which do not implement the retroactive header).

      Included is a patch that allows this to be configured on a per-topic basis from the configuration file, for example:

      <policyEntry topic=">" producerFlowControl="true" alwaysRetroactive="true" memoryLimit="1mb">
        <subscriptionRecoveryPolicy>
           <lastImageSubscriptionRecoveryPolicy />
        </subscriptionRecoveryPolicy>
      </policyEntry>
      

      Attachments

        1. amq-alwaysretroactive.patch
          7 kB
          Pete Redhead

        Activity

          People

            gtully Gary Tully
            peteredhead Pete Redhead
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: