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


The following commit(s) were added to refs/heads/main by this push:
     new 29a4723  Add error handler example
29a4723 is described below

commit 29a4723ced805072399546a686118c9de9e341f5
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Dec 13 09:47:50 2022 +0100

    Add error handler example
---
 jbang/error-handler/foo-configuration.yaml | 11 -----------
 jbang/error-handler/foo.yaml               |  8 +++++++-
 2 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/jbang/error-handler/foo-configuration.yaml 
b/jbang/error-handler/foo-configuration.yaml
deleted file mode 100644
index 48b7db6..0000000
--- a/jbang/error-handler/foo-configuration.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-# camel-k: language=yaml
-
-# route configuration
-
-- route-configuration:
-    error-handler:
-      dead-letter-channel:
-        deadLetterUri: "log:dead"
-        redeliveryPolicy: 
-          maximumRedeliveries: 5
-          retryAttemptedLogLevel: WARN
diff --git a/jbang/error-handler/foo.yaml b/jbang/error-handler/foo.yaml
index 3001ef6..e16412d 100644
--- a/jbang/error-handler/foo.yaml
+++ b/jbang/error-handler/foo.yaml
@@ -1,6 +1,12 @@
 # camel-k: language=yaml
 
-# Write your routes here, for example:
+- error-handler:
+    dead-letter-channel:
+      deadLetterUri: "log:dead"
+      redeliveryPolicy: 
+        maximumRedeliveries: 5
+        retryAttemptedLogLevel: WARN
+
 - from:
     uri: "timer:yaml"
     parameters:

Reply via email to