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");