Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Camel features descriptor allowing to easily and quickly install Camel in Karaf.
  • Karaf commands allowing you to view, start, stop, get info, about the Camel contexts and routes running in the Karaf instance.
    NB: Karaf commands are available starting with Camel 2.8.0, and the commands was renamed in Camel 2.9.0.

Here are the versions that are compatible.

Camel Version

Karaf Version

2.2.0

1.2.0

2.3.0

1.3.0

2.4.0

1.4.0

2.5.0

2.1.0

2.7.0

2.2.0

2.7.2

2.2.2

2.8.2 +

2.2.4

Preparing Karaf for Camel

...

When you install the camel feature, new Karaf commands become available automatically.

Karaf commands in Camel 2.8.x

Command

Description

camel:list-contexts

Lists the camel contexts available in the current Karaf instance

camel:list-routes

Displays the list of Camel routes available in the current Karaf instance

camel:info-context

Displays detail information about a given Camel context

camel:start-context

Starts the given Camel context

camel:stop-context

Stops the given Camel context

camel:info-route

Provides detail information about a Camel route

camel:show-route

Renders the route in XML

camel:start-route

Starts the given route.

camel:stop-route

Stops the given route.

Karaf commands in Camel 2.9 onwards

Command

Description

camel:context-list

Lists the camel contexts available in the current Karaf instance

camel:context-info

Displays detail information about a given Camel context

camel:context-start

Starts the given Camel context

camel:context-stop

Stops the given Camel context

camel:route-list

Displays the list of Camel routes available in the current Karaf instance

camel:route-info

Provides detail information about a Camel route

camel:suspendroute-show

Renders the route in XML

camel:route-start

Starts Suspends the given route.

camel:route-stop

Stops the given route.

camel:route-suspend

Suspends the given route. Available on Camel 2.9.0 or newer

camel:route-resume:route

Resumes the given route. Available on Camel 2. 9.0 or newer

camel:list-contexts

The *camel:list-contexts* command displays the list of CamelContext available in the current Karaf instance:

...

Code Block
karaf@root> camel:stop-route route1

Camel 2.9 or newer:

camel:route-suspend

...

The *camel:start-route* command suspends a Camel route:

Code Block
karaf@root> camel:route-suspend-route route1

Tip: use TAB key for completion on the route name.

camel:resume-route

The *camel:route-resume-route* command resume a Camel route:

Code Block
karaf@root> camel:route-resume-route route1

Tip: use TAB key for completion on the route name.