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

Java runtime policy update should support a list of properties to apply retrospectively

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.13.0
    • 5.13.1, 5.14.0
    • Broker
    • None

    Description

      Right now when the JavaRuntimeConfigurationBroker is used to update a Policy entry, every property of the Policy is re-applied to matching destinations after update. It would also be nice if an optional list of properties could be provided during the update.

      The behavior of this option would be to still apply the entire Policy entry update (so all new destinations get the policy changes), but for existing destinations only properties that match what's in the property list would get applied.

      The use case here would be wanting to apply only one or more properties that changed on a Policy to a destination, but not wanting to overwrite the other properties that might have been changed since creation of the destination.

      For example, say through JMX someone updated the maxPageSize property on a specific Queue to something other than what is specified on the Policy. After the fact, it might be desirable to update a different property on the policy that matches that Queue and have it be applied to the Queue. Normally this policy update would overwrite all properties on the existing Queue, but in this case we would not want to overwrite the maxPageSize setting as it was changed after the fact. So providing a list of properties to apply would prevent that setting from being changed.

      Attachments

        Activity

          People

            cshannon Christopher L. Shannon
            cshannon Christopher L. Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: