You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by az...@apache.org on 2008/09/25 06:04:47 UTC

svn commit: r698809 - /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java

Author: azeez
Date: Wed Sep 24 21:04:47 2008
New Revision: 698809

URL: http://svn.apache.org/viewvc?rev=698809&view=rev
Log:
Replicate only the required properties


Modified:
    synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java

Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java?rev=698809&r1=698808&r2=698809&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java Wed Sep 24 21:04:47 2008
@@ -232,8 +232,7 @@
                 }
 
                 cfgCtx.setProperty(cacheManagerKey, cacheManager);
-                Replicator.replicate(cfgCtx);
-
+                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
             } else {
                 auditWarn("A response message without a valid mapping to the " +
                     "request hash found. Unable to store the response in cache", synCtx);
@@ -355,7 +354,7 @@
                 }
 
                 cfgCtx.setProperty(cacheManagerKey, cacheManager);
-                Replicator.replicate(cfgCtx);
+                Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
             }
 
         } else {
@@ -396,7 +395,7 @@
         cacheManager.addResponseWithKey(requestHash, cachedObj, cfgCtx);
 
         cfgCtx.setProperty(cacheManagerKey, cacheManager);
-        Replicator.replicate(cfgCtx);
+        Replicator.replicate(cfgCtx, new String[]{cacheManagerKey});
     }
 
     public String getId() {