(camel-kamelets-examples) branch main updated: Polished
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 0f2c857 Polished 0f2c857 is described below commit 0f2c8572335bf95ff28f61f04e96a7ad4b6605dd Author: Claus Ibsen AuthorDate: Sat Aug 10 10:35:28 2024 +0200 Polished --- jbang/open-api-contract-first/application.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jbang/open-api-contract-first/application.properties b/jbang/open-api-contract-first/application.properties new file mode 100644 index 000..c426c79 --- /dev/null +++ b/jbang/open-api-contract-first/application.properties @@ -0,0 +1,2 @@ +camel.component.rest-openapi.mockIncludePattern = file:camel-mock/**,classpath:camel-mock/** +camel.server.enabled=true \ No newline at end of file
(camel-kamelets-examples) branch main updated: Polished
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 64a7f62 Polished 64a7f62 is described below commit 64a7f62557819b0f83c19e219f32fa70df0de72d Author: Claus Ibsen AuthorDate: Tue Apr 30 11:41:22 2024 +0200 Polished --- jbang/kafka-health/application.properties | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jbang/kafka-health/application.properties b/jbang/kafka-health/application.properties index 34147d8..f45e872 100644 --- a/jbang/kafka-health/application.properties +++ b/jbang/kafka-health/application.properties @@ -1,9 +1,12 @@ # configuration file # make it easy to configure individual logging levels -logging.level.org.apache.kafka = DEBUG -logging.level.org.apache.camel.component.kafka = TRACE +# logging.level.org.apache.kafka = DEBUG +# logging.level.org.apache.camel.component.kafka = TRACE # you can also use quarkus style naming # quarkus.log.category."org.apache.kafka".level=DEBUG # quarkus.log.category."org.apache.camel.component.kafka".level=DEBUG + +# turn of quarkus dev-services as we run kafka via docker-compose +quarkus.devservices.enabled = false \ No newline at end of file
(camel-kamelets-examples) branch main updated: Polished example to use java
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 a04311d Polished example to use java a04311d is described below commit a04311da207aed3a2cf6ffe566c9adf3d9261215 Author: Claus Ibsen AuthorDate: Mon Apr 29 09:13:11 2024 +0200 Polished example to use java --- jbang/open-api/{greetings.groovy => Greetings.java} | 16 +++- jbang/open-api/README.md| 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/jbang/open-api/greetings.groovy b/jbang/open-api/Greetings.java similarity index 71% rename from jbang/open-api/greetings.groovy rename to jbang/open-api/Greetings.java index 7d20bdb..91ee42f 100644 --- a/jbang/open-api/greetings.groovy +++ b/jbang/open-api/Greetings.java @@ -1,4 +1,3 @@ -// camel-k: language=groovy /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -16,7 +15,14 @@ * limitations under the License. */ -from('direct:greeting-api') -.to('log:api?showAll=true&multiline=true') -.setBody() -.simple('Hello from ${headers.name}') +import org.apache.camel.builder.RouteBuilder; + +public class Greetings extends RouteBuilder { + +public void configure() throws Exception { +from("direct:greeting-api") +.to("log:api?showAll=true&multiline=true") +.setBody() +.simple("Hello from ${headers.name}"); +} +} diff --git a/jbang/open-api/README.md b/jbang/open-api/README.md index b81b253..a8606a9 100644 --- a/jbang/open-api/README.md +++ b/jbang/open-api/README.md @@ -7,7 +7,7 @@ Find useful examples about how to expose an Open API specification in a Camel in Run the examples running ``` -camel run --open-api greetings-api.json greetings.groovy +camel run --open-api greetings-api.json Greetings.java ``` Then you can test by calling the hello endpoint, ie:
(camel-kamelets-examples) branch main updated: Polished
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 32a9da3 Polished 32a9da3 is described below commit 32a9da30781089c9b63d31b9e551e131dcfc17a6 Author: Claus Ibsen AuthorDate: Fri Dec 15 10:04:20 2023 +0100 Polished --- jbang/app-routes-beans/README.adoc | 9 + jbang/app-routes-spring-beans/README.adoc | 9 + jbang/app-routes/README.adoc| 9 + jbang/artemis/README.adoc | 8 .../aws-database-admin-secrets-refresh/README.adoc | 7 --- jbang/aws-s3-cdc/README.adoc| 7 --- jbang/aws-secrets-manager/README.adoc | 9 - jbang/azure-eventhubs-kafka-ibm-mq/README.adoc | 21 - jbang/azure-key-vault-secrets-reloading/README.adoc | 7 --- jbang/azure-storage-blob-append/README.adoc | 10 -- jbang/azure-storage-blob-cdc/README.adoc| 9 - jbang/bean-builder/README.adoc | 8 jbang/bean-inlined-code/README.adoc | 8 jbang/camelk-bean/README.adoc | 9 + jbang/camelk-bind/README.adoc | 9 + jbang/chaos-monkey/README.adoc | 11 ++- jbang/circuit-breaker/README.adoc | 7 --- jbang/custom-kamelet/README.adoc| 2 +- jbang/dependency-injection/README.adoc | 8 jbang/error-handler/README.adoc | 9 + jbang/gcp-secret-manager-reloading/README.adoc | 9 - jbang/google-secret-manager/README.adoc | 13 +++-- jbang/google-storage-cdc/README.adoc| 9 - jbang/hello-endpoint-dsl/README.adoc| 13 +++-- jbang/hello-java/README.adoc| 9 + jbang/hello-xml/README.adoc | 9 + jbang/hello-yaml/README.adoc| 9 + jbang/http-streaming/README.adoc| 7 --- jbang/jbang-edit/README.adoc| 7 --- jbang/json-transform/README.adoc| 7 --- jbang/languages/README.adoc | 11 ++- jbang/local-jar/README.adoc | 8 jbang/metrics/README.adoc | 9 + jbang/postgresql-gcp-secret-refresh/README.adoc | 9 + jbang/prometheus/README.adoc| 9 + jbang/slack-source/README.adoc | 14 -- jbang/type-converter/README.adoc| 8 jbang/xml-and-bean/README.adoc | 8 jbang/xslt-transform/README.adoc| 7 --- 39 files changed, 27 insertions(+), 324 deletions(-) diff --git a/jbang/app-routes-beans/README.adoc b/jbang/app-routes-beans/README.adoc index 6004eb9..9f1cb14 100644 --- a/jbang/app-routes-beans/README.adoc +++ b/jbang/app-routes-beans/README.adoc @@ -35,13 +35,6 @@ Then you can run this example using: $ camel run StandaloneGreeter.java beans.yaml app.xml -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] - -$ jbang camel@apache/camel run StandaloneGreeter.java beans.yaml app.xml - - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -58,7 +51,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans +$ camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans === Developer Web Console diff --git a/jbang/app-routes-spring-beans/README.adoc b/jbang/app-routes-spring-beans/README.adoc index 9401d82..ab93b3e 100644 --- a/jbang/app-routes-spring-beans/README.adoc +++ b/jbang/app-routes-spring-beans/README.adoc @@ -37,13 +37,6 @@ Then you can run this example using: $ camel run StandaloneGreeter.java beans.yaml app.xml -Or run with JBang using the longer command line (without installing camel as app in JBang): - -[source,sh] - -$ jbang camel@apache/camel run StandaloneGreeter.java beans.yaml app.xml - - === Live reload You can run the example in dev mode which allows you to edit the example, @@ -60,7 +53,7 @@ The example can also be run directly by referring to the github URL as shown: [source,sh] -$ jbang camel@apache/camel run https://github.com/apache/camel-kamelets-examples/tree/main/jbang/app-routes-beans +$ ca
[camel-kamelets-examples] branch main updated: Polished
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 408c366 Polished 408c366 is described below commit 408c36620c2ae62805776916211b630f3d1cc66b Author: Claus Ibsen AuthorDate: Mon Oct 2 10:20:00 2023 +0200 Polished --- jbang/karaf-blueprint/DatabaseInitializationBean.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/jbang/karaf-blueprint/DatabaseInitializationBean.java b/jbang/karaf-blueprint/DatabaseInitializationBean.java index bb9836b..43e3e48 100644 --- a/jbang/karaf-blueprint/DatabaseInitializationBean.java +++ b/jbang/karaf-blueprint/DatabaseInitializationBean.java @@ -39,8 +39,6 @@ public class DatabaseInitializationBean { } public void create() throws Exception { -System.out.println(""); - LOG.info("Creating database tables ..."); if (connection == null) { EmbeddedDriver driver = new EmbeddedDriver();
[camel-kamelets-examples] branch main updated: Polished
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 71ce3ad Polished 71ce3ad is described below commit 71ce3ad2c9ea285aa3ece13cff2424f2be780c22 Author: Claus Ibsen AuthorDate: Tue Apr 18 11:53:37 2023 +0200 Polished --- jbang/mqtt/README.adoc | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jbang/mqtt/README.adoc b/jbang/mqtt/README.adoc index 77b6bc2..2bc3f2b 100644 --- a/jbang/mqtt/README.adoc +++ b/jbang/mqtt/README.adoc @@ -31,11 +31,18 @@ Which allows to run CamelJBang with `camel` as shown below. You need to run a MQTT broker such as via Docker, or download and run Apache ActiveMQ Artemis. -To use docker (docker compose), run the following command: +To use docker (docker compose), you can run the following command: [source,sh] -/start.sh +$ start.sh + + +Or use + +[source,sh] + +$ docker-compose up Then you can run the Camel integration using:
[camel-kamelets-examples] branch main updated: Polished
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 45eb2eb Polished 45eb2eb is described below commit 45eb2ebd31b5c9f036cb943aed137ecf5990b3ed Author: Claus Ibsen AuthorDate: Fri Apr 14 14:47:50 2023 +0200 Polished --- jbang/mqtt/mqtt.camel.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jbang/mqtt/mqtt.camel.yaml b/jbang/mqtt/mqtt.camel.yaml index b0ec0c5..38f7fbb 100644 --- a/jbang/mqtt/mqtt.camel.yaml +++ b/jbang/mqtt/mqtt.camel.yaml @@ -13,9 +13,7 @@ jq: expression: .value id: jq-d9d0 -- convertBodyTo: -type: String -id: convertBodyTo-c5ee +resultType: String - choice: when: - id: when-1bdb
[camel-kamelets-examples] branch main updated: Polished
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 64575a5 Polished 64575a5 is described below commit 64575a5710c760aba54d8b91d78c45a742882abe Author: Claus Ibsen AuthorDate: Fri Apr 14 14:44:54 2023 +0200 Polished --- jbang/mqtt/README.adoc | 2 +- jbang/mqtt/mqtt.camel.yaml | 24 +--- jbang/mqtt/payload-low.json | 3 +++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/jbang/mqtt/README.adoc b/jbang/mqtt/README.adoc index c7686fd..866483b 100644 --- a/jbang/mqtt/README.adoc +++ b/jbang/mqtt/README.adoc @@ -60,7 +60,7 @@ The Camel integration will then consume the payload and output in the console. [source,text] -2023-04-14 08:58:58.676 INFO 62348 --- [calCliConnector] mqtt.yaml:13 : The temperature is 21 +2023-04-14 08:58:58.676 INFO 62348 --- [calCliConnector] mqtt.camel.yaml:27 : Warm temperature at 21 Stopping diff --git a/jbang/mqtt/mqtt.camel.yaml b/jbang/mqtt/mqtt.camel.yaml index aeea498..b0ec0c5 100644 --- a/jbang/mqtt/mqtt.camel.yaml +++ b/jbang/mqtt/mqtt.camel.yaml @@ -13,6 +13,24 @@ jq: expression: .value id: jq-d9d0 -- log: -message: The temperature is ${body} -id: log-ac74 +- convertBodyTo: +type: String +id: convertBodyTo-c5ee +- choice: +when: + - id: when-1bdb +expression: + simple: +expression: ${body} > 20 +id: simple-5f3c +steps: + - log: + message: Warm temperature at ${body} + id: log-04f5 +id: choice-0565 +otherwise: + id: otherwise-2305 + steps: +- log: +message: Cold temperator at ${body} +id: log-dcb6 diff --git a/jbang/mqtt/payload-low.json b/jbang/mqtt/payload-low.json new file mode 100644 index 000..63b9a39 --- /dev/null +++ b/jbang/mqtt/payload-low.json @@ -0,0 +1,3 @@ +{ + "value": 7 +} \ No newline at end of file
[camel-kamelets-examples] branch main updated: Polished
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 50e5366 Polished 50e5366 is described below commit 50e5366d268fce482128193a5311cfbdbb7d8eef Author: Claus Ibsen AuthorDate: Fri Apr 14 14:28:35 2023 +0200 Polished --- jbang/mqtt/README.adoc| 2 +- jbang/mqtt/{mqtt.yaml => mqtt.camel.yaml} | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jbang/mqtt/README.adoc b/jbang/mqtt/README.adoc index 2cce6fc..c7686fd 100644 --- a/jbang/mqtt/README.adoc +++ b/jbang/mqtt/README.adoc @@ -39,7 +39,7 @@ Then you can run the Camel integration using: [source,sh] -$ camel run mqtt.yaml +$ camel run mqtt.camel.yaml And then from another terminal (or run the integraiton with `--background` option), diff --git a/jbang/mqtt/mqtt.yaml b/jbang/mqtt/mqtt.camel.yaml similarity index 71% rename from jbang/mqtt/mqtt.yaml rename to jbang/mqtt/mqtt.camel.yaml index ca32e98..aeea498 100644 --- a/jbang/mqtt/mqtt.yaml +++ b/jbang/mqtt/mqtt.camel.yaml @@ -1,13 +1,18 @@ - route: +id: route-c5e2 from: uri: kamelet:mqtt5-source + id: from-b3d6 parameters: topic: temperature brokerUrl: tcp://localhost:1883 steps: - transform: +id: transform-a607 expression: jq: expression: .value +id: jq-d9d0 - log: message: The temperature is ${body} +id: log-ac74
[camel-kamelets-examples] branch main updated: Polished
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 c28b132 Polished c28b132 is described below commit c28b1324ca60316e1f1fc1c669fc8557037b4651 Author: Claus Ibsen AuthorDate: Sun Nov 13 11:46:30 2022 +0100 Polished --- jbang/chaos-monkey/ChaosMonkey.java | 2 +- jbang/chaos-monkey/README.adoc | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/jbang/chaos-monkey/ChaosMonkey.java b/jbang/chaos-monkey/ChaosMonkey.java index f5d8b0b..d99cec6 100644 --- a/jbang/chaos-monkey/ChaosMonkey.java +++ b/jbang/chaos-monkey/ChaosMonkey.java @@ -20,7 +20,7 @@ public class ChaosMonkey extends org.apache.camel.impl.health.AbstractHealthChec @Override public void doCall(org.apache.camel.health.HealthCheckResultBuilder builder, java.util.Map options) { if (num < 4) { -builder.detail("chaos-number", num).down(); +builder.detail("chaos-number", num).message("Chaos is here!!!").down(); } else { builder.detail("chaos-number", num).up(); } diff --git a/jbang/chaos-monkey/README.adoc b/jbang/chaos-monkey/README.adoc index c681e45..fa6cd8a 100644 --- a/jbang/chaos-monkey/README.adoc +++ b/jbang/chaos-monkey/README.adoc @@ -65,6 +65,12 @@ $ camel run * --health Then you can browse: http://localhost:8080/q/health to introspect the health check of the running application. When the chaos moneky is causing problems then the check is DOWN otherwise its UP. +You can also inspect the health-check from CLI via: + +[source,sh] + +$ camel get health + === Help and contributions
[camel-kamelets-examples] branch main updated: Polished
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 23c593c Polished 23c593c is described below commit 23c593c1d27dcfa58adf8b82f998127408f78520 Author: Claus Ibsen AuthorDate: Tue Sep 13 09:31:37 2022 +0200 Polished --- jbang/aws-secrets-manager/README.adoc | 23 +++ 1 file changed, 23 insertions(+) diff --git a/jbang/aws-secrets-manager/README.adoc b/jbang/aws-secrets-manager/README.adoc index 4d965b4..9ded1df 100644 --- a/jbang/aws-secrets-manager/README.adoc +++ b/jbang/aws-secrets-manager/README.adoc @@ -57,6 +57,13 @@ Then you can run this example using: $ camel run --properties=aws-sec-integration.properties timer-aws-secret-reloading.yaml +Or run it even shorter: + +[source,sh] + +$ camel run * + + Or run with JBang using the longer command line (without installing camel as app in JBang): [source,sh] @@ -64,8 +71,17 @@ Or run with JBang using the longer command line (without installing camel as app $ jbang camel@apache/camel run --properties=aws-sec-integration.properties timer-aws-secret-reloading.yaml + + === Modify the secret +You can list the secrets in use from the AWS security vault: + +[source,sh] + +camel get vault + + While the integration is running you could modify the secret and the integration will reload automatically [source,sh] @@ -75,6 +91,13 @@ aws secretsmanager put-secret-value --secret-id SecretTest --region eu-west-1 -- Now, get back, to the running Camel application and wait for the reloading. +And the secret should also now be listed as updated form the get vault command: + +[source,sh] + +camel get vault + + === Developer Web Console You can enable the developer console via `--console` flag as show:
[camel-kamelets-examples] branch main updated: Polished
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 8674e8b Polished 8674e8b is described below commit 8674e8be385c13802bc1ea256f7a1b3be6206909 Author: Claus Ibsen AuthorDate: Thu Sep 8 12:44:10 2022 +0200 Polished --- jbang/aws-secrets-manager/aws-sec-integration.properties | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jbang/aws-secrets-manager/aws-sec-integration.properties b/jbang/aws-secrets-manager/aws-sec-integration.properties index 75f973f..22e0ecb 100644 --- a/jbang/aws-secrets-manager/aws-sec-integration.properties +++ b/jbang/aws-secrets-manager/aws-sec-integration.properties @@ -3,5 +3,4 @@ camel.vault.aws.region=eu-west-1 camel.vault.aws.refreshEnabled=true camel.vault.aws.refreshPeriod=6 camel.vault.aws.secrets=SecretTest -camel.main.context-reload-enabled = true -camel.main.name = AWS-secrets-manager +camel.main.name = AWSExample
[camel-kamelets-examples] branch main updated: Polished
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 2cdb187 Polished 2cdb187 is described below commit 2cdb18718e2815921cc85400a61b48489ef93dff Author: Claus Ibsen AuthorDate: Mon May 23 20:37:23 2022 +0200 Polished --- jbang/pipe/README.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jbang/pipe/README.adoc b/jbang/pipe/README.adoc index 6148a3c..420309e 100644 --- a/jbang/pipe/README.adoc +++ b/jbang/pipe/README.adoc @@ -4,8 +4,8 @@ This example shows how to use Camel with terminal scripting. There are 2 scripts: -- upper.yaml - Upper cases the input -- to_csv.java - Aggregates the input into a single comma separated output +- `upper.yaml` - Upper cases the input +- `to_csv.java` - Aggregates the input into a single comma separated output === Install JBang
[camel-kamelets-examples] branch main updated: Polished
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 386375c Polished 386375c is described below commit 386375c622395b843d1bbd62510c59a2e8ee86ee Author: Claus Ibsen AuthorDate: Sun Apr 17 09:57:43 2022 +0200 Polished --- jbang/hello-java/Hey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jbang/hello-java/Hey.java b/jbang/hello-java/Hey.java index d8ab5b8..c6f5a3b 100755 --- a/jbang/hello-java/Hey.java +++ b/jbang/hello-java/Hey.java @@ -11,6 +11,6 @@ public class Hey extends org.apache.camel.builder.RouteBuilder { .process(e -> { e.getMessage().setBody("Hello from Camel"); }) -.to("log:info"); +.log("${body}"); } }
[camel-kamelets-examples] branch main updated: Polished
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 699086e Polished 699086e is described below commit 699086ed8f9a79c333deb839632e0c21a4871aaa Author: Claus Ibsen AuthorDate: Wed Mar 23 15:21:03 2022 +0100 Polished --- jbang/dependency-injection/Hello.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jbang/dependency-injection/Hello.java b/jbang/dependency-injection/Hello.java index 77ecc62..8a7b9a3 100755 --- a/jbang/dependency-injection/Hello.java +++ b/jbang/dependency-injection/Hello.java @@ -11,7 +11,7 @@ public class Hello extends RouteBuilder { from("timer:java?period=1000") .routeId("java") .process(e -> { - e.getMessage().setBody("SpringBoot"); + e.getMessage().setBody("Jack"); }) .bean("myEcho", "echo") .bean("myLogger", "log(${body})");