commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1776739 - /commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java
Date Sat, 31 Dec 2016 13:34:09 GMT
Author: rmannibucau
Date: Sat Dec 31 13:34:09 2016
New Revision: 1776739

URL: http://svn.apache.org/viewvc?rev=1776739&view=rev
Log:
JCS-170 replacing at least commas for jmx registration

Modified:
    commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java

Modified: commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java?rev=1776739&r1=1776738&r2=1776739&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java
(original)
+++ commons/proper/jcs/trunk/commons-jcs-jcache/src/main/java/org/apache/commons/jcs/jcache/JCSCache.java
Sat Dec 31 13:34:09 2016
@@ -157,12 +157,13 @@ public class JCSCache<K, V> implements C
         statistics.setActive(config.isStatisticsEnabled());
 
         final String mgrStr = manager.getURI().toString().replaceAll(",|:|=|\n", ".");
+        final String cacheStr = name.replaceAll(",|:|=|\n", ".");
         try
         {
             cacheConfigObjectName = new ObjectName("javax.cache:type=CacheConfiguration,"
-                    + "CacheManager=" + mgrStr + "," + "Cache=" + name);
+                    + "CacheManager=" + mgrStr + "," + "Cache=" + cacheStr);
             cacheStatsObjectName = new ObjectName("javax.cache:type=CacheStatistics,"
-                    + "CacheManager=" + mgrStr + "," + "Cache=" + name);
+                    + "CacheManager=" + mgrStr + "," + "Cache=" + cacheStr);
         }
         catch (final Exception e)
         {



Mime
View raw message