[
https://issues.apache.org/jira/browse/ARTEMIS-2743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095915#comment-17095915
]
ASF subversion and git services commented on ARTEMIS-2743:
----------------------------------------------------------
Commit 803ccf72292d7ad6202f500023845adb7aad503b in activemq-artemis's branch
refs/heads/master from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=803ccf7 ]
ARTEMIS-2743 Synchronize JMS connection methods
> 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
> 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)