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

Problematic Xid comparison in ActiveMQXASession

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.1, 1.2
    • 1.1
    • JMS client
    • None
    • All environments

    Description

      In ActiveMQXASession.java, Xids are tested for equality in various places using the == operator. This will not work properly if the Xids are equal but happen to be different objects. A better approach would be to use a boolean equals(Xid a, Xid b) method that tests the formatId, globalTransactionId and branchQualifier of the involved Xids for equality.

      Attachments

        Activity

          People

            stewie Stewie
            boerdijk Robin Boerdijk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: