[
https://issues.apache.org/jira/browse/ARTEMIS-2743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Bertram resolved ARTEMIS-2743.
-------------------------------------
Fix Version/s: 2.13.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 2.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {{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)