You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/05/16 12:53:52 UTC
camel git commit: CAMEL-11273: Allow to load routeContext with live
reload routes from xml files support. Thanks to Ronny Aerts for the patch.
This closes #1693
Repository: camel
Updated Branches:
refs/heads/master 387c17e05 -> 880a39013
CAMEL-11273: Allow to load routeContext with live reload routes from xml files support. Thanks to Ronny Aerts for the patch. This closes #1693
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/880a3901
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/880a3901
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/880a3901
Branch: refs/heads/master
Commit: 880a390134fe54fd102b8ab108912817b75a9e9a
Parents: 387c17e
Author: Claus Ibsen <da...@apache.org>
Authored: Tue May 16 14:52:15 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue May 16 14:52:35 2017 +0200
----------------------------------------------------------------------
.../main/java/org/apache/camel/support/ReloadStrategySupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/880a3901/camel-core/src/main/java/org/apache/camel/support/ReloadStrategySupport.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/support/ReloadStrategySupport.java b/camel-core/src/main/java/org/apache/camel/support/ReloadStrategySupport.java
index ff985c3..d99bc62 100644
--- a/camel-core/src/main/java/org/apache/camel/support/ReloadStrategySupport.java
+++ b/camel-core/src/main/java/org/apache/camel/support/ReloadStrategySupport.java
@@ -73,7 +73,7 @@ public abstract class ReloadStrategySupport extends ServiceSupport implements Re
try {
xml = camelContext.getTypeConverter().mandatoryConvertTo(String.class, resource);
// the JAXB model expects the spring namespace (even for blueprint)
- dom = XmlLineNumberParser.parseXml(new ByteArrayInputStream(xml.getBytes()), null, "camelContext,routes", "http://camel.apache.org/schema/spring");
+ dom = XmlLineNumberParser.parseXml(new ByteArrayInputStream(xml.getBytes()), null, "camelContext,routeContext,routes", "http://camel.apache.org/schema/spring");
} catch (Exception e) {
failed++;
log.warn("Cannot load the resource " + name + " as XML");