Skip to content

Commit e98470f

Browse files
committedAug 26, 2022
CAMEL-18425: camel-cli - Make regular Camel applications work with Camel CLI
1 parent 6a0dcad commit e98470f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
 

‎spring-boot/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
<groupId>org.apache.camel.springboot</groupId>
101101
<artifactId>camel-management-starter</artifactId>
102102
</dependency>
103+
<!-- Camel CLI -->
104+
<dependency>
105+
<groupId>org.apache.camel.springboot</groupId>
106+
<artifactId>camel-cli-connector-starter</artifactId>
107+
</dependency>
103108

104109
<!-- test -->
105110
<dependency>

‎spring-boot/readme.adoc

+14
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ For example to get route information:
5252
curl -XGET -s http://localhost:8080/actuator/camel/routes
5353
----
5454

55+
=== Camel CLI
56+
57+
This application is integrated with the Camel CLI via the `camel-cli-connector-starter` dependency (see `pom.xml`).
58+
This allows to use the Camel CLI to manage this application, such as:
59+
60+
$mvn spring-boot:run
61+
62+
And then use the CLI to see status:
63+
64+
$camel get
65+
PID NAME CAMEL PLATFORM READY STATUS AGE TOTAL FAILED INFLIGHT SINCE-LAST
66+
86000 sample.camel.MyCamelApplica… 3.19.0 Spring Boot v2.7.3 1/1 Running 11s 5 0 0 0s
67+
68+
5569
=== Help and contributions
5670

5771
If you hit any problem using Camel or have some feedback, then please

0 commit comments

Comments
 (0)
Please sign in to comment.