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 2021/02/08 09:04:05 UTC

[camel-examples] branch master updated (3494a3b -> 40ab0ca)

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

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git.


    from 3494a3b  Regen
     new a5cab3e  Added xml route
     new 40ab0ca  Reduce number of JARs on classpath

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/camel-example-routeloader/pom.xml                   | 12 ++++++++----
 .../src/main/resources/application.properties                |  2 +-
 .../src/main/resources/myroutes/cheese-route.xml}            |  7 ++++++-
 3 files changed, 15 insertions(+), 6 deletions(-)
 copy examples/{camel-example-cdi-metrics/src/main/resources/META-INF/beans.xml => camel-example-routeloader/src/main/resources/myroutes/cheese-route.xml} (83%)


[camel-examples] 01/02: Added xml route

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a5cab3e7642fae2bb38a2ca53f4535709f4e528a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Feb 8 10:01:09 2021 +0100

    Added xml route
---
 .../src/main/resources/application.properties      |  2 +-
 .../src/main/resources/myroutes/cheese-route.xml   | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/examples/camel-example-routeloader/src/main/resources/application.properties b/examples/camel-example-routeloader/src/main/resources/application.properties
index 6e2e9cf..e05ff48 100644
--- a/examples/camel-example-routeloader/src/main/resources/application.properties
+++ b/examples/camel-example-routeloader/src/main/resources/application.properties
@@ -20,5 +20,5 @@
 camel.main.name = MyJavaLoader
 
 # which directory(s) to scan for routes which can be xml or java files
-camel.main.routes-include-pattern=classpath:myroutes/*.java
+camel.main.routes-include-pattern=classpath:myroutes/*
 
diff --git a/examples/camel-example-routeloader/src/main/resources/myroutes/cheese-route.xml b/examples/camel-example-routeloader/src/main/resources/myroutes/cheese-route.xml
new file mode 100644
index 0000000..7c91ce9
--- /dev/null
+++ b/examples/camel-example-routeloader/src/main/resources/myroutes/cheese-route.xml
@@ -0,0 +1,25 @@
+<?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="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


[camel-examples] 02/02: Reduce number of JARs on classpath

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 40ab0cab1876fd4da98feb27eae2f97bbfb9a5da
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Feb 8 10:03:52 2021 +0100

    Reduce number of JARs on classpath
---
 examples/camel-example-routeloader/pom.xml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/examples/camel-example-routeloader/pom.xml b/examples/camel-example-routeloader/pom.xml
index 9d612bd..aebddde 100644
--- a/examples/camel-example-routeloader/pom.xml
+++ b/examples/camel-example-routeloader/pom.xml
@@ -51,10 +51,7 @@
 
     <dependencies>
 
-        <dependency>
-            <groupId>org.apache.camel</groupId>
-            <artifactId>camel-core</artifactId>
-        </dependency>
+        <!-- camel main -->
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-main</artifactId>
@@ -64,6 +61,13 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-joor</artifactId>
         </dependency>
+        <!-- xml-io with fast xml route loader -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-xml-io</artifactId>
+        </dependency>
+
+        <!-- components -->
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-timer</artifactId>