Author: nfilotto
Date: 2011-08-30 09:12:37 -0400 (Tue, 30 Aug 2011)
New Revision: 4811
Modified:
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java
Log:
EXOJCR-1499: Cleaned code
Modified:
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java
===================================================================
---
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java 2011-08-30
13:03:17 UTC (rev 4810)
+++
kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/ExoCacheFactoryImpl.java 2011-08-30
13:12:37 UTC (rev 4811)
@@ -373,15 +373,10 @@
String clusterName = cfg.getClusterName();
if (clusterName != null && (clusterName = clusterName.trim()).length() >
0)
{
- cfg.setClusterName(clusterName + "-" + ctx.getName());
+ cfg.setClusterName(clusterName + "-" + ctx.getName() +
(!allowShareableCache ? "-" + region : ""));
}
if (!allowShareableCache)
{
- // Rename the cluster name
- if (clusterName != null && clusterName.length() > 0)
- {
- cfg.setClusterName(clusterName + "-" + region);
- }
return cache;
}
ConfigurationKey key;
Show replies by date