Justin Bertram created ARTEMIS-2743:
---------------------------------------
Summary: Synchronize JMS connection methods
Key: ARTEMIS-2743
URL: https://issues.apache.org/jira/browse/ARTEMIS-2743
Project: ActiveMQ Artemis
Issue Type: Bug
Reporter: Justin Bertram
Assignee: Justin Bertram
{{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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)