activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r398928 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Date Tue, 02 May 2006 12:30:22 GMT
Author: jstrachan
Date: Tue May  2 05:29:28 2006
New Revision: 398928

URL: http://svn.apache.org/viewcvs?rev=398928&view=rev
Log:
ensure that the check of whether or not the ConnectionInfo is sent to the broker - and the
clientID created - is thread safe to fix AMQ-696

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java?rev=398928&r1=398927&r2=398928&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Tue May  2 05:29:28 2006
@@ -1207,7 +1207,7 @@
      * 
      * @throws JMSException
      */
-    protected void ensureConnectionInfoSent() throws JMSException {
+    protected synchronized void ensureConnectionInfoSent() throws JMSException {
         // Can we skip sending the ConnectionInfo packet??
         if (isConnectionInfoSentToBroker || closed.get()) {
             return;



Mime
View raw message