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 ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.