Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2743

Synchronize JMS connection methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13.0
    • None
    • None

    Description

      org.apache.activemq.artemis.jms.client.ActiveMQConnection#createSession(boolean, int) and org.apache.activemq.artemis.jms.client.ActiveMQConnection#close have always used synchronized. However, many of the other variants of createSession don't use synchronized which can lead to concurrency issues, specifically a NullPointerException when concurrently closing a connection and creating a session from that connection.

      Attachments

        Activity

          People

            jbertram Justin Bertram
            jbertram Justin Bertram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m