This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 9af266b  (chore) add an example of xml route
9af266b is described below

commit 9af266b592c55b422dffca9356e5de65fcf50b55
Author: nferraro <ni.ferr...@gmail.com>
AuthorDate: Tue Oct 30 11:20:45 2018 +0100

    (chore) add an example of xml route
---
 runtime/examples/hello.xml                         | 28 ++++++++++++++++++++++
 .../java/org/apache/camel/k/jvm/RoutesLoaders.java |  2 +-
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/runtime/examples/hello.xml b/runtime/examples/hello.xml
new file mode 100644
index 0000000..ff9bc8d
--- /dev/null
+++ b/runtime/examples/hello.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+         http://www.apache.org/licenses/LICENSE-2.0
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+              xmlns="http://camel.apache.org/schema/spring";
+              xsi:schemaLocation="http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
+
+    <route id="hello">
+        <from uri="timer:hello?period=3s"/>
+        <setBody>
+            <constant>Hello World!!!</constant>
+        </setBody>
+        <to uri="log:info"/>
+    </route>
+
+</routes>
diff --git 
a/runtime/jvm/src/main/java/org/apache/camel/k/jvm/RoutesLoaders.java 
b/runtime/jvm/src/main/java/org/apache/camel/k/jvm/RoutesLoaders.java
index 0ffafbc..a9ecf60 100644
--- a/runtime/jvm/src/main/java/org/apache/camel/k/jvm/RoutesLoaders.java
+++ b/runtime/jvm/src/main/java/org/apache/camel/k/jvm/RoutesLoaders.java
@@ -163,7 +163,7 @@ public final class RoutesLoaders {
                                 getContext().loadRestsDefinition(is)
                             );
                         } catch (UnmarshalException e) {
-                            LOGGER.debug("Unbale to load RestsDefinition: {}", 
e.getMessage());
+                            LOGGER.debug("Unable to load RestsDefinition: {}", 
e.getMessage());
                         }
                     }
                 }

Reply via email to