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

ActiveMQXAConnectionFactory does not respect various parameters for redelivery policy

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.4.0, 5.4.2, 5.5.0
    • None
    • JMS client
    • None
    • Unit Test Broken

    Description

      I tried to add these following parameters to my redelivery policy and activeMQ is not respecting any of them except maximumRedelivery
      <spring:bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
      <spring:property name="maximumRedeliveries" value="5"/>
      <spring:property name="initialRedeliveryDelay" value="5000"/>
      <spring:property name="redeliveryDelay" value="2000"/>
      <spring:property name="useExponentialBackOff" value="true"/>
      <spring:property name="backOffMultiplier" value="2"/>

      </spring:bean>

      I have attached the project which I took from https://issues.apache.org/jira/browse/AMQ-1593 and added the above parameter to my brokerURL:
      tcp://localhost:5000?jms.redeliveryPolicy.maximumRedeliveries=3&jms.redeliveryPolicy.initialRedeliveryDelay=10000&jms.redeliveryPolicy.deliveryDelay=10000&jms.redeliveryPolicy.useExponentialBackOff=true&jms.redeliveryPolicy.backOffMultiplier=2

      This test case will show you that none of the parameters like initiaRedeliveryDelay etc will take effect, except maxRedeliveries

      Attachments

        1. activemq-test-0.1-project.zip
          12 kB
          Alberto Aresca
        2. activemq-test.zip
          13 kB
          Jaskirat Bhatia

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jaskiratbhatia Jaskirat Bhatia
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment