Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Listing routes in Karaf


It is common to deploy dozens of Camel routes into an Apache Karaf container. To make administrating these routes easier, Apache Camel has provided a command to list all Camel-deployed routes by their ID.

Getting ready

Follow the instructions in the Listing Camel Contexts in Karaf recipe's Getting ready section for this recipe.

How to do it…

Use the camel:route-list command to list all routes deployed in Karaf as follows:

karaf@root()> camel:route-list 
 Context               Route                   Status   
 -------               -----                   ------   
 CamelCommandContext   CamelRoute-timerToLog   Started   

The preceding invocation gathers and displays all the routes deployed in the container on Karaf's console.

How it works…

When the route-list command is executed, the route IDs of each route in each Camel Context are displayed along with their current status.

Tip

When developing routes, assign a descriptive ID to help make administration easier.

See also...