O'Reilly logo

Apache Karaf Cookbook by Heath Kesler, Johan Edstrom, Jamie Goodyear, Achim Nierbeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting and stopping Camel Contexts in Karaf

Starting and stopping the bundle that contains a Camel Context can be very clumsy; you can use the camel:context-start and camel:context-stop commands to manage specific contexts.

Getting ready

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

How to do it…

Managing Camel Contexts in Karaf is easy, but requires you to become familiar with two commands, which are as follows:

  • camel:context-start contextName: This command is used to start a context
  • camel:context-stop contextName: This command is used to stop a context

The following Camel command invocations demonstrate the result of stopping a context:

karaf@root()> camel:context-list
 Context Status ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required