This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 044505d CAMEL-16664: camel-core - XML routes loader allow to load
single route files also
044505d is described below
commit 044505d061532354400c7a1346fbd8ac6638345b
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Jun 1 10:14:00 2021 +0200
CAMEL-16664: camel-core - XML routes loader allow to load single route
files also
---
.../src/main/resources/myroutes/cheese-route.xml | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/examples/routeloader/src/main/resources/myroutes/cheese-route.xml
b/examples/routeloader/src/main/resources/myroutes/cheese-route.xml
index 7c91ce9..798296d 100644
--- a/examples/routeloader/src/main/resources/myroutes/cheese-route.xml
+++ b/examples/routeloader/src/main/resources/myroutes/cheese-route.xml
@@ -17,9 +17,13 @@
limitations under the License.
-->
-<routes xmlns="http://camel.apache.org/schema/spring">
- <route>
- <from uri="timer:xml?period=5s"/>
- <log message="I am XML"/>
- </route>
-</routes>
\ No newline at end of file
+
+<!--
+ if you want to have multiple routes, you can either have multiple files
with 1 <route> per file or
+ you can use <routes> as root tag, such as
<routes><route>...</route><route>...</route></routes>
+-->
+
+<route>
+ <from uri="timer:xml?period=5s"/>
+ <log message="I am XML"/>
+</route>