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 2026/06/01 13:58:31 UTC

(camel-jbang-examples) 01/03: Udate cron example

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

commit fe19aaecaaa4282c7d62d8c621746330fcb7cf6c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat May 30 20:24:01 2026 +0200

    Udate cron example
---
 cron-log/application.properties | 2 --
 cron-log/cron-log.camel.yaml    | 6 ++----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/cron-log/application.properties b/cron-log/application.properties
index b99fbbe..476729c 100644
--- a/cron-log/application.properties
+++ b/cron-log/application.properties
@@ -1,4 +1,2 @@
-# Timer period in milliseconds
-cron.period=5000
 # Log message prefix
 cron.message=Scheduled task running at
diff --git a/cron-log/cron-log.camel.yaml b/cron-log/cron-log.camel.yaml
index 8739f72..dee6b1c 100644
--- a/cron-log/cron-log.camel.yaml
+++ b/cron-log/cron-log.camel.yaml
@@ -1,10 +1,9 @@
 - route:
     id: cron-log
     from:
-      uri: timer
+      uri: cron:tab
       parameters:
-        timerName: cron
-        period: "{{cron.period}}"
+        schedule: "0/5 * * * * ?"
       steps:
         - setBody:
             expression:
@@ -12,4 +11,3 @@
                 expression: "{{cron.message}} ${date:now:HH:mm:ss}"
         - log:
             message: "${body}"
-