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 e98470f CAMEL-18425: camel-cli - Make regular Camel applications work with Camel CLI e98470f is described below commit e98470f3712e6b2e60e2307f35325f54d1d697ab Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Aug 26 15:52:42 2022 +0200 CAMEL-18425: camel-cli - Make regular Camel applications work with Camel CLI --- spring-boot/pom.xml | 5 +++++ spring-boot/readme.adoc | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml index 36b6ba5..7beebef 100644 --- a/spring-boot/pom.xml +++ b/spring-boot/pom.xml @@ -100,6 +100,11 @@ <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-management-starter</artifactId> </dependency> + <!-- Camel CLI --> + <dependency> + <groupId>org.apache.camel.springboot</groupId> + <artifactId>camel-cli-connector-starter</artifactId> + </dependency> <!-- test --> <dependency> diff --git a/spring-boot/readme.adoc b/spring-boot/readme.adoc index 7a8f41e..bce9e91 100644 --- a/spring-boot/readme.adoc +++ b/spring-boot/readme.adoc @@ -52,6 +52,20 @@ For example to get route information: curl -XGET -s http://localhost:8080/actuator/camel/routes ---- +=== Camel CLI + +This application is integrated with the Camel CLI via the `camel-cli-connector-starter` dependency (see `pom.xml`). +This allows to use the Camel CLI to manage this application, such as: + + $mvn spring-boot:run + +And then use the CLI to see status: + + $camel get + PID NAME CAMEL PLATFORM READY STATUS AGE TOTAL FAILED INFLIGHT SINCE-LAST + 86000 sample.camel.MyCamelApplica… 3.19.0 Spring Boot v2.7.3 1/1 Running 11s 5 0 0 0s + + === Help and contributions If you hit any problem using Camel or have some feedback, then please