Author: azeez Date: Mon Oct 10 06:47:23 2011 New Revision: 1180793 URL: http://svn.apache.org/viewvc?rev=1180793&view=rev Log: Applying patch provided by Hiranya for AXIS2-5165
Modified: axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java Modified: axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java?rev=1180793&r1=1180792&r2=1180793&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java (original) +++ axis/axis2/java/core/trunk/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusteringAgent.java Mon Oct 10 06:47:23 2011 @@ -264,11 +264,14 @@ public class TribesClusteringAgent imple OMElement propEle = (OMElement) iter.next(); OMAttribute nameAttrib = propEle.getAttribute(new QName("name")); if(nameAttrib != null){ + String attribName = nameAttrib.getAttributeValue(); + attribName = replaceProperty(attribName, memberInfo); + OMAttribute valueAttrib = propEle.getAttribute(new QName("value")); if (valueAttrib != null) { String attribVal = valueAttrib.getAttributeValue(); attribVal = replaceProperty(attribVal, memberInfo); - memberInfo.setProperty(nameAttrib.getAttributeValue(), attribVal); + memberInfo.setProperty(attribName, attribVal); } } } @@ -300,6 +303,9 @@ public class TribesClusteringAgent imple String sysProp = text.substring(indexOfStartingChars + 2, indexOfClosingBrace); String propValue = props.getProperty(sysProp); + if (propValue == null) { + propValue = System.getProperty(sysProp); + } if (propValue != null) { text = text.substring(0, indexOfStartingChars) + propValue + text.substring(indexOfClosingBrace + 1);