Author: indika
Date: Wed Dec 5 21:47:44 2007
New Revision: 601623
URL: http://svn.apache.org/viewvc?rev=601623&view=rev
Log:
to set properties to the new mc , used setPropetyNonReplicable() instead to
setProperty() for avoid any implicity replication of the properties
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/MessageHelper.java
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/MessageHelper.java
URL:
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/MessageHelper.java?rev=601623&r1=601622&r2=601623&view=diff
==============================================================================
---
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/MessageHelper.java
(original)
+++
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/MessageHelper.java
Wed Dec 5 21:47:44 2007
@@ -179,14 +179,11 @@
for (Object o1 : ori.getProperties().keySet()) {
String key = (String) o1;
if (key != null) {
- //In clustered environment, all the properties related to the
throttle ,
- //will be replicated explicitly by throttling Mediator ,
- //therefore It should avoid any implicitly replication from
any other component
- if
(key.startsWith(ThrottleConstants.THROTTLE_PROPERTY_PREFIX)) {
- newMC.setNonReplicableProperty(key,
ori.getPropertyNonReplicable(key));
- } else {
- newMC.setProperty(key, ori.getProperty(key));
- }
+ //In clustered environment, all the properties that are need
to be relpicated,
+ //will be replicated explicitly by the corresponding
Mediators
+ //(Ex: throttle,cache),therefore It should avoid any
implicitly replication from
+ //any other component.
+ newMC.setNonReplicableProperty(key,
ori.getPropertyNonReplicable(key));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]