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
The following commit(s) were added to refs/heads/master by this push: new 10f621e Polished example 10f621e is described below commit 10f621e30c98c15c88c6bfadf2f248bfd06dd279 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat May 30 11:31:44 2020 +0200 Polished example --- examples/camel-example-main-health/pom.xml | 2 +- .../src/main/java/org/apache/camel/example/MyRouteBuilder.java | 2 +- .../src/main/resources/application.properties | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/camel-example-main-health/pom.xml b/examples/camel-example-main-health/pom.xml index 95320ea..4ba5c45 100644 --- a/examples/camel-example-main-health/pom.xml +++ b/examples/camel-example-main-health/pom.xml @@ -65,7 +65,7 @@ </dependency> <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-quartz</artifactId> + <artifactId>camel-timer</artifactId> </dependency> <dependency> <groupId>org.apache.camel</groupId> diff --git a/examples/camel-example-main-health/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/examples/camel-example-main-health/src/main/java/org/apache/camel/example/MyRouteBuilder.java index a5baa36..997fd88 100644 --- a/examples/camel-example-main-health/src/main/java/org/apache/camel/example/MyRouteBuilder.java +++ b/examples/camel-example-main-health/src/main/java/org/apache/camel/example/MyRouteBuilder.java @@ -27,7 +27,7 @@ public class MyRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception { - from("quartz:foo?cron={{myCron}}").routeId("quartz") + from("timer:foo?period={{myPeriod}}").routeId("timer") .bean(monkey, "chaos") .log("${body}"); diff --git a/examples/camel-example-main-health/src/main/resources/application.properties b/examples/camel-example-main-health/src/main/resources/application.properties index 0900958..efff99a 100644 --- a/examples/camel-example-main-health/src/main/resources/application.properties +++ b/examples/camel-example-main-health/src/main/resources/application.properties @@ -31,9 +31,5 @@ camel.main.route-controller-back-off-max-attempts = 10 camel.main.health-check-enabled = true camel.main.health-check-routes-enabled = true -# 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 - # properties used in the route -myCron = 0/10 * * * * ? +myPeriod = 10s