[exo-jcr-commits] exo-jcr SVN: r5839 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Mar 12 08:44:36 EDT 2012


Author: tolusha
Date: 2012-03-12 08:44:35 -0400 (Mon, 12 Mar 2012)
New Revision: 5839

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java
Log:
EXOJCR-1783: stopping shareable JBC, fix java.util.ConcurrentModificationException


Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java	2012-03-12 11:15:29 UTC (rev 5838)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/jbosscache/ExoJBossCacheFactory.java	2012-03-12 12:44:35 UTC (rev 5839)
@@ -45,6 +45,7 @@
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Map.Entry;
+import java.util.concurrent.ConcurrentHashMap;
 
 import javax.management.ObjectName;
 import javax.transaction.TransactionManager;
@@ -283,7 +284,7 @@
       Map<ConfigurationKey, CacheInstance> caches = allCacheTypes.get(cacheType);
       if (caches == null)
       {
-         caches = new HashMap<ConfigurationKey, CacheInstance>();
+         caches = new ConcurrentHashMap<ConfigurationKey, CacheInstance>();
          allCacheTypes.put(cacheType, caches);
       }
       Configuration cfg = cache.getConfiguration();



More information about the exo-jcr-commits mailing list