Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-410

If authentication error occurs, there is no option for AMQP client to stop the retry using failover option

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.1-GA, 1.1.0-alpha
    • 1.0.0-GA
    • qpid-jms
    • None
    • Hide

      1. Add a user to etc/users.properties

      user0001=pass0001,gr0001,gw0001
      

      2. Make sure you have an AMQP transport to etc/activemq.xml

      <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600&amp;transport.transformer=jms"/>
      

      3. Start A-MQ broker and open the management console to make a queue named "TestQueue"
      4. Select the "TestQueue" and send a message to the queue
      5. Using the following failover URL to the broker, try to receive the message from the queue with the user "user0001" and a password "wrongPassword".
      (see attached reproducer.zip(1))

      failover:(amqp://xxx.xxx.xxx.xxx:5672,amqp://yyy.yyy.yyy.yyy:5672)?failover.startupMaxReconnectAttempts=2&failover.useReconnectBackOff=false&failover.maxReconnectAttempts=2
      

      (1)

      Show
      1. Add a user to etc/users.properties user0001=pass0001,gr0001,gw0001 2. Make sure you have an AMQP transport to etc/activemq.xml <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600&amp;transport.transformer=jms"/> 3. Start A-MQ broker and open the management console to make a queue named "TestQueue" 4. Select the "TestQueue" and send a message to the queue 5. Using the following failover URL to the broker, try to receive the message from the queue with the user "user0001" and a password "wrongPassword". (see attached reproducer.zip(1)) failover:(amqp://xxx.xxx.xxx.xxx:5672,amqp://yyy.yyy.yyy.yyy:5672)?failover.startupMaxReconnectAttempts=2&failover.useReconnectBackOff=false&failover.maxReconnectAttempts=2 (1) this is an archived JBDS project Once imported to JBDS, please add AMQP client libraries https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=41251&product=jboss.amq&version=6.2.1&downloadType=distributions

    Description

      If authentication error occurs, AMQP client using failover option will keep retrying connection forever.

      I tried both option noted here(1) but does not work as expected.

      • failover.maxReconnectAttempts
      • failover.startupMaxReconnectAttempts

      (1)
      https://qpid.apache.org/releases/qpid-jms-0.5.0/docs/index.html

      Attachments

        Issue Links

          Activity

            People

              gemmellr Robbie Gemmell
              iboverma Irina Boverman
              Zdenek Kraus Zdenek Kraus
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: