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.git

commit 2e293463f03d335d2063ff13e0f052a76efe17a1
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Feb 4 20:08:41 2020 +0100

    Make tiny example more tiny
---
 examples/camel-example-main-tiny/pom.xml           | 35 ++++++++++------------
 .../org/apache/camel/example/MyRouteBuilder.java   |  2 +-
 .../src/main/resources/application.properties      |  6 +---
 3 files changed, 17 insertions(+), 26 deletions(-)

diff --git a/examples/camel-example-main-tiny/pom.xml 
b/examples/camel-example-main-tiny/pom.xml
index 4eacc9e..212214c 100644
--- a/examples/camel-example-main-tiny/pom.xml
+++ b/examples/camel-example-main-tiny/pom.xml
@@ -17,7 +17,8 @@
     limitations under the License.
 
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
 
     <modelVersion>4.0.0</modelVersion>
 
@@ -43,11 +44,7 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-core-engine</artifactId>
             <exclusions>
-                <!-- we dont need XML, LRUCache, and json util -->
-                <exclusion>
-                    <groupId>org.apache.camel</groupId>
-                    <artifactId>camel-jaxp</artifactId>
-                </exclusion>
+                <!-- we dont need LRUCache, and json util -->
                 <exclusion>
                     <groupId>org.apache.camel</groupId>
                     <artifactId>camel-caffeine-lrucache</artifactId>
@@ -61,6 +58,17 @@
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-main</artifactId>
+            <exclusions>
+                <!-- we dont need LRUCache, and headersmap -->
+                <exclusion>
+                    <groupId>org.apache.camel</groupId>
+                    <artifactId>camel-caffeine-lrucache</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>org.apache.camel</groupId>
+                    <artifactId>camel-headersmap</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <!-- we use these 2 camel components in this example -->
         <dependency>
@@ -69,20 +77,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
-            <artifactId>camel-quartz</artifactId>
-        </dependency>
-
-        <!-- we dont need XML DSL or JAXB -->
-        <!-- currently you disable these by setting them to test scope -->
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.sun.xml.bind</groupId>
-            <artifactId>jaxb-impl</artifactId>
-            <scope>test</scope>
+            <artifactId>camel-timer</artifactId>
         </dependency>
 
         <!-- logging -->
diff --git 
a/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java
 
b/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java
index c2a1983..e9c2b1c 100644
--- 
a/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ 
b/examples/camel-example-main-tiny/src/main/java/org/apache/camel/example/MyRouteBuilder.java
@@ -22,7 +22,7 @@ public class MyRouteBuilder extends RouteBuilder {
 
     @Override
     public void configure() throws Exception {
-        from("quartz:foo?cron={{myCron}}")
+        from("timer:foo?period={{myPeriod}}")
             .bean("myBean", "hello")
             .log("${body}")
             .bean("myBean", "bye")
diff --git 
a/examples/camel-example-main-tiny/src/main/resources/application.properties 
b/examples/camel-example-main-tiny/src/main/resources/application.properties
index ca8f08c..7f12394 100644
--- a/examples/camel-example-main-tiny/src/main/resources/application.properties
+++ b/examples/camel-example-main-tiny/src/main/resources/application.properties
@@ -29,10 +29,6 @@ camel.main.jmx-enabled = false
 # load additional property placeholders from this folder
 camel.main.file-configurations=src/main/data/*.properties
 
-# to configure the camel quartz component
-# here we can configure the options on the component level (and we can use 
dash-naming-style)
-camel.component.quartz.start-delayed-seconds = 3
-
 # to configure Hystrix EIP (global and you need to add camel-hystrix to the 
classpath)
 ### camel.hystrix.group-key=myGroup
 ### camel.hystrix.execution-timeout-in-milliseconds=5000
@@ -46,7 +42,7 @@ camel.component.quartz.start-delayed-seconds = 3
 ### camel.component.properties.environment-variable-mode=1
 
 # properties used in the route
-myCron = 0/2 * * * * ?
+myPeriod = 1000
 
 # application properties
 hi = Hello

Reply via email to