ActiveMQ
  1. ActiveMQ
  2. AMQ-2911

Option to make all consumers retroactive

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.0
    • Component/s: Broker
    • Labels:
      None
    • Patch Info:
      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>
      

        Activity

        Hide
        Gary Tully added a comment -

        patch applied with thanks and with additional test (to protect it)
        http://svn.apache.org/viewvc?rev=1145217&view=rev

        Show
        Gary Tully added a comment - patch applied with thanks and with additional test (to protect it) http://svn.apache.org/viewvc?rev=1145217&view=rev
        Hide
        Paolo Casagranda added a comment -

        Very useful patch! The "always retroactive" flag could be an important basic feature in some scenarios.
        I hope it will be included in next (5.6?) release.

        Show
        Paolo Casagranda added a comment - Very useful patch! The "always retroactive" flag could be an important basic feature in some scenarios. I hope it will be included in next (5.6?) release.
        Hide
        Sam Starling added a comment -

        Hello - thanks for your patch, Pete. It'd be great to see this incorporated into the 5.5 release, for those of us who are new to compiling and running ActiveMQ from source, with patches.

        Show
        Sam Starling added a comment - Hello - thanks for your patch, Pete. It'd be great to see this incorporated into the 5.5 release, for those of us who are new to compiling and running ActiveMQ from source, with patches.
        Hide
        Pete Redhead added a comment -

        Here is the patch for the 5.5 SNAPSHOT (10th Sept 2010)

        Show
        Pete Redhead added a comment - Here is the patch for the 5.5 SNAPSHOT (10th Sept 2010)

          People

          • Assignee:
            Gary Tully
            Reporter:
            Pete Redhead
          • Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development