Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1419

Second connection request with Durable subscriber throws "Setting clientID on a used Connection is not allowed"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBoss A-MQ 6.2
    • Fix Version/s: JBoss A-MQ 6.3
    • Component/s: broker
    • Labels:
      None

      Description

      With durable subscriber first time the connection is requested, it gets created and the clientId set on the connection. This call to the setClientID in the ActiveMQConnection.class checks isConnectionInfoSentToBroker which at this point is false. The clientId is successfully set on the connection and and connectionInfo sent to the broker (with the isConnectionInfoSentToBroker set to true) and the connection returned for use by the caller.Second time the connection is requested, the pooled connection is returned, the setClientID is called, but this time an exception is thrown as the isConnectionInfoSentToBroker is true. This is the issue we are seeing the failure on with the text "Setting clientID on a used Connection is not allowed". This implies that AMQ would assume the clientId would be tied to the connection, but unless that is part of the matchManagedConnection criteria then that would not be the case.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                garytully Gary Tully
                Reporter:
                varshak Varsha Kamble
                Tester:
                David Kornel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: