servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tt...@apache.org
Subject svn commit: r655846 - /servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java
Date Tue, 13 May 2008 12:57:38 GMT
Author: tterm
Date: Tue May 13 05:57:38 2008
New Revision: 655846

URL: http://svn.apache.org/viewvc?rev=655846&view=rev
Log:
SM-1352 content based router does not work anymore because of wrong evaluate mode

Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java?rev=655846&r1=655845&r2=655846&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/serviceengines/servicemix-eip/src/main/java/org/apache/servicemix/eip/support/XPathPredicate.java
Tue May 13 05:57:38 2008
@@ -18,6 +18,7 @@
 
 import javax.jbi.messaging.MessageExchange;
 import javax.jbi.messaging.NormalizedMessage;
+import javax.xml.xpath.XPathConstants;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -45,7 +46,7 @@
     public boolean matches(MessageExchange exchange) {
         try {
             NormalizedMessage in = exchange.getMessage("in");
-            Boolean match = (Boolean) evaluate(exchange, in);
+            Boolean match = (Boolean) evaluate(exchange, in, XPathConstants.BOOLEAN);
             return Boolean.TRUE.equals(match);
         } catch (Exception e) {
             LOG.warn("Could not evaluate xpath expression", e);



Mime
View raw message