ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1307372 - /ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java
Date Fri, 30 Mar 2012 11:44:59 GMT
Author: marrs
Date: Fri Mar 30 11:44:58 2012
New Revision: 1307372

URL: http://svn.apache.org/viewvc?rev=1307372&view=rev
Log:
ACE-238 synchronized on the same lock object that is used when creating a new workspace

Modified:
    ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java

Modified: ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java?rev=1307372&r1=1307371&r2=1307372&view=diff
==============================================================================
--- ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java
(original)
+++ ace/trunk/ace-client-rest/src/main/java/org/apache/ace/client/rest/RESTClientServlet.java
Fri Mar 30 11:44:58 2012
@@ -113,7 +113,7 @@ public class RESTClientServlet extends H
         // Note that configuration changes are only applied to new work areas, started after
the
         // configuration was changed. No attempt is done to "fix" existing work areas, although
we
         // might consider flushing/invalidating them.
-        synchronized (new Object()) {
+        synchronized (m_workspaces) {
             m_repositoryURL = getProperty(properties, KEY_REPOSITORY_URL, "http://localhost:8080/repository");
             m_obrURL = getProperty(properties, KEY_OBR_URL, "http://localhost:8080/obr");
             m_customerName = getProperty(properties, KEY_CUSTOMER_NAME, "apache");



Mime
View raw message