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 endpoints in Karaf


Apache Camel users use endpoints to denote URIs from which events and information come from or go to. In Karaf, the endpoint-list command has been provided to help simplify tracking these URIs.

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:endpoint-list command to list all endpoints in Karaf (use the camel:endpoint-list context-name command if you want to restrict output to one context's routes). This is shown in the following command:

karaf@root()> camel:endpoint-list 
 Context               Uri                       Status   
 -------               ---                       ------   
 CamelCommandContext   mock://result             Started  
 CamelCommandContext   timer://foo?period=5000   Started  

In the preceding invocation, all endpoints found in Karaf are displayed (in this example, the endpoints were set in Blueprint—see the recipe's source code for...