Author: indika
Date: Sun Dec  2 21:47:59 2007
New Revision: 600429

URL: http://svn.apache.org/viewvc?rev=600429&view=rev
Log:
fixed  a wrong XPath expression that cause to get connection information 
from only first db mediator ,when there are multiples db mediators in 
the synapse configuration. because of this , For a configuration which  
there are multiple db mediators with difference  connection 
information,Factory always build the db mediators with same (first db 
mediator ) connection information.

Modified:
    
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/AbstractDBMediatorFactory.java

Modified: 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/AbstractDBMediatorFactory.java
URL: 
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/AbstractDBMediatorFactory.java?rev=600429&r1=600428&r2=600429&view=diff
==============================================================================
--- 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/AbstractDBMediatorFactory.java
 (original)
+++ 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/AbstractDBMediatorFactory.java
 Sun Dec  2 21:47:59 2007
@@ -105,7 +105,7 @@
         // get the 'pool' element and determine if we need to create a 
DataSource or
         // look up using JNDI
         try {
-            AXIOMXPath xpath = new AXIOMXPath("//syn:connection/syn:pool");
+            AXIOMXPath xpath = new 
AXIOMXPath("self::node()/syn:connection/syn:pool");
             xpath.addNamespace("syn", XMLConfigConstants.SYNAPSE_NAMESPACE);
             pool = (OMElement) xpath.selectSingleNode(elem);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to