...
Code Block |
---|
karaf@root> features:install camel-stream |
Karaf commands
When you install the camel feature, new Karaf commands become available automatically.
camel:list-contexts
The *camel:list-contexts* command displays the list of CamelContext available in the current Karaf instance:
Code Block |
---|
karaf@root> camel:list-contexts
Name Status Uptime
[66-camel-3 ] [Started ] [14.559 seconds ]
|
It displays the context name/ID (used in others commands), the current status (started/stopped), the uptime (since when the context has been started).
camel:list-routes
The *camel:list-routes* command displays the list of Camel routes available in the current Karaf instance:
Code Block |
---|
karaf@root> camel:list-routes
[route1 ]
|
You can also filter the routes by CamelContext:
Code Block |
---|
karaf@root> camel:list-routes 66-camel-3
[route1 ]
|
Tip: use the TAB key to completion on the CamelContext ID.