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 2023/12/07 15:53:48 UTC
(camel-spring-boot-examples) branch main updated: CAMEL-20108: Update Camel examples to use Camel Case instead of deprecated kebab case
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-spring-boot-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 6e2b341 CAMEL-20108: Update Camel examples to use Camel Case instead of deprecated kebab case
6e2b341 is described below
commit 6e2b3414e551619e521aa81a803cfdac31075b4f
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Dec 7 16:53:38 2023 +0100
CAMEL-20108: Update Camel examples to use Camel Case instead of deprecated kebab case
---
.../main/resources/kamelets/chuck-norris-source.kamelet.yaml | 2 +-
.../src/main/resources/myerror/yaml-error.yaml | 6 +++---
.../src/main/resources/myroutes/my-yaml-route.yaml | 12 ++++++------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
index aa60e29..e62299b 100644
--- a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
+++ b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
@@ -37,6 +37,6 @@ spec:
period: "{{period}}"
steps:
- to: "https://api.chucknorris.io/jokes/random"
- - set-body:
+ - setBody:
jsonpath: "$.value"
- to: "kamelet:sink"
diff --git a/routes-configuration/src/main/resources/myerror/yaml-error.yaml b/routes-configuration/src/main/resources/myerror/yaml-error.yaml
index 2ae8c64..62935d2 100644
--- a/routes-configuration/src/main/resources/myerror/yaml-error.yaml
+++ b/routes-configuration/src/main/resources/myerror/yaml-error.yaml
@@ -15,10 +15,10 @@
## limitations under the License.
## ---------------------------------------------------------------------------
-- route-configuration:
+- routeConfiguration:
id: "yamlError"
- on-exception:
- - on-exception:
+ onException:
+ - onException:
handled:
constant: "true"
exception:
diff --git a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
index 2d28a3a..969796b 100644
--- a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
+++ b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
@@ -17,17 +17,17 @@
- route:
# refer to the route configuration by the id to use for this route
- route-configuration-id: "yamlError"
+ routeConfigurationId: "yamlError"
from:
uri: "timer:yaml?period=3s"
steps:
- - set-body:
+ - setBody:
simple: "Timer fired ${header.CamelTimerCounter} times"
- to:
uri: "log:yaml"
parameters:
- show-body-type: false
- show-exchange-pattern: false
- - throw-exception:
- exception-type: "java.lang.IllegalArgumentException"
+ showBodyType: false
+ showEchangePattern: false
+ - throwException:
+ exceptionType: "java.lang.IllegalArgumentException"
message: "Error from yaml"