Displaying Camel Context information in Karaf

Karaf can display detailed information about individual Camel Contexts deployed in the container using the camel:context-info command. Context-wide statistics, behaviors, contained components, and more can be discovered using this command.

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 following camel:context-info command on the Karaf console to retrieve context information—a small warning, there may be a lot of output generated:

karaf@root()> camel:context-info CamelCommandContext 

The output will be as follows:

Camel Context CamelCommandContext
  Name: CamelCommandContext
 ManagementName: 123-CamelCommandContext ...

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.