camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r586879 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: ExchangePattern.java component/ref/RefComponent.java
Date Sun, 21 Oct 2007 09:32:39 GMT
Author: gnodet
Date: Sun Oct 21 02:32:39 2007
New Revision: 586879

URL: http://svn.apache.org/viewvc?rev=586879&view=rev
Log:
Fix pattern and ref component

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ExchangePattern.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/ref/RefComponent.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ExchangePattern.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ExchangePattern.java?rev=586879&r1=586878&r2=586879&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ExchangePattern.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ExchangePattern.java Sun
Oct 21 02:32:39 2007
@@ -72,9 +72,9 @@
         switch (this) {
             case OutOnly:
             case RobustOutOnly:
-                return true;
-            default:
                 return false;
+            default:
+                return true;
         }
     }
 
@@ -115,7 +115,7 @@
         for (ExchangePattern mep : values()) {
             String uri = mep.getWsdlUri();
             map.put(uri, mep);
-            String name = uri.substring(uri.lastIndexOf('/'));
+            String name = uri.substring(uri.lastIndexOf('/') + 1);
             map.put("http://www.w3.org/2004/08/wsdl/" + name, mep);
             map.put("http://www.w3.org/2006/01/wsdl/" + name, mep);
         }

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/ref/RefComponent.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/ref/RefComponent.java?rev=586879&r1=586878&r2=586879&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/ref/RefComponent.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/component/ref/RefComponent.java
Sun Oct 21 02:32:39 2007
@@ -28,7 +28,7 @@
 public class RefComponent extends DefaultComponent<Exchange> {
 
     protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws
Exception {
-        String name = uri.substring(4);
+        String name = uri.substring("ref:".length());
         return getCamelContext().getRegistry().lookup(name, Endpoint.class);
     }
 



Mime
View raw message