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

ActiveMQConnection cleanup should not close the connection on the broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.11.0
    • 5.12.0
    • None
    • None

    Description

      As the spec says

      http://docs.oracle.com/javaee/6/api/javax/resource/spi/ManagedConnection.html#cleanup()

      "The cleanup of ManagedConnection instance resets its client specific state and prepares the connection to be put back in to a connection pool. The cleanup method should not cause resource adapter to close the physical pipe and reclaim system resources associated with the physical connection."

      We should not send RemoveInfo on cleanup, but just clean client side state. The result of "closing" a connection on cleanup is that connection will not be cached when using XA transactions, causing high CPU usage on the broker.

      Attachments

        Activity

          People

            dejanb Dejan Bosanac
            dejanb Dejan Bosanac
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: