Repository: camel
Updated Branches:
  refs/heads/master 7e355e0d0 -> e4b1a5213


Polished. This closes #1242


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e4b1a521
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e4b1a521
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e4b1a521

Branch: refs/heads/master
Commit: e4b1a5213876181f854ff55c21b04d08a3c6cb85
Parents: 5607878
Author: Claus Ibsen <davscl...@apache.org>
Authored: Tue Nov 8 10:30:35 2016 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Tue Nov 8 10:30:50 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/impl/RouteIdFactory.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e4b1a521/camel-core/src/main/java/org/apache/camel/impl/RouteIdFactory.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/RouteIdFactory.java 
b/camel-core/src/main/java/org/apache/camel/impl/RouteIdFactory.java
index fda6127..5fdb51c 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/RouteIdFactory.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/RouteIdFactory.java
@@ -63,11 +63,10 @@ public class RouteIdFactory implements NodeIdFactory {
         }
 
         return defaultNodeIdFactory.createId(definition);
-
     }
 
     /**
-     * Extract id from direct/seda route.
+     * Extract id from routes
      */
     private Optional<String> extractId(RouteDefinition routeDefinition) {
         List<FromDefinition> inputs = routeDefinition.getInputs();
@@ -79,6 +78,7 @@ public class RouteIdFactory implements NodeIdFactory {
         FromDefinition from = inputs.get(0);
         String uri = from.getUri();
 
+        // we want to use the context-path of the route
         int colon = uri.indexOf(':');
 
         if (colon > 0) {

Reply via email to