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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        301d 3h 27m 1 Gary Tully 11/Jul/11 17:07
        Gary Tully made changes -
        Fix Version/s 5.6.0 [ 12317974 ]
        Fix Version/s 5.x [ 12316331 ]
        Gary Tully made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.6.0 [ 12316331 ]
        Resolution Fixed [ 1 ]
        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
        Gary Tully made changes -
        Assignee Gary Tully [ gtully ]
        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.
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        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.
        Pete Redhead made changes -
        Field Original Value New Value
        Attachment amq-alwaysretroactive.patch [ 19639 ]
        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)
        Pete Redhead created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development