Author: ruwan
Date: Wed Jun 10 14:13:21 2009
New Revision: 38553
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=38553

Log:
Fixing the clustered caching issue


Modified:
   
branches/synapse/1.3-wso2v1/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java

Modified: 
branches/synapse/1.3-wso2v1/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java?rev=38553&r1=38552&r2=38553&view=diff
==============================================================================
--- 
branches/synapse/1.3-wso2v1/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
      (original)
+++ 
branches/synapse/1.3-wso2v1/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
      Wed Jun 10 14:13:21 2009
@@ -220,7 +220,8 @@
                 }
 
                 cfgCtx.setProperty(cacheManagerKey, cacheManager);
-                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+//                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+                Replicator.replicate(cfgCtx);
             } else {
                 synLog.auditWarn("A response message without a valid mapping 
to the " +
                     "request hash found. Unable to store the response in 
cache");
@@ -336,7 +337,8 @@
                 synLog.traceOrDebug("Existing cached response has expired. 
Reset cache element");
 
                 cfgCtx.setProperty(cacheManagerKey, cacheManager);
-                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+//                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+                Replicator.replicate(cfgCtx);
             }
 
         } else {
@@ -375,7 +377,8 @@
         cacheManager.addResponseWithKey(requestHash, cachedObj, cfgCtx);
 
         cfgCtx.setProperty(cacheManagerKey, cacheManager);
-        Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+//        Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
+        Replicator.replicate(cfgCtx);
     }
 
     public String getId() {

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to