Versions Compared

Key

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

...

Tip: use the TAB key to completion on the CamelContext ID.

camel:info-context

The *camel:info-context* command displays detail information about a given CamelContext:

Code Block

karaf@root> camel:info-context 66-camel-3 
Camel Context 66-camel-3
        Name: 66-camel-3
        Version: 2.8.0
        Status: Started
        Uptime: 1 minute

Advanced
        Auto Startup: true
        Starting Routes: false
        Suspended: false
        Tracing: false

Properties

Components
        timer
        properties
        log

Endpoints
        timer://test
        log://test

Routes
        route1

Used Languages

You can see the current Camel version used by the CamelContext, some context attributes, the components involved in the context, and the endpoints defined.

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

camel:start-context

The *camel:start-context* command starts a given CamelContext:

Code Block

karaf@root> camel:start-context 66-camel-3

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

camel:stop-context

The *camel:stop-context* command stops a given CamelContext:

Code Block

karaf@root> karaf@root> camel:stop-context 66-camel-3

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

camel:info-route

The *camel:info-route* command provides detail information about a Camel route:

Code Block

karaf@root> camel:info-route route1 
Camel Route route1
        Camel Context: 66-camel-3

Properties
                id = route1
                parent = 2e7aacc1

Statistics
        Exchanges Total: 98
        Exchanges Completed: 98
        Exchanges Failed: 0
        Min Processing Time: 1ms
        Max Processing Time: 2ms
        Mean Processing Time: 1ms
        Total Processing Time: 134ms
        Last Processing Time: 1ms
        First Exchange Date: 2011-06-29 07:21:57
        Last Exchange Completed Date: 2011-06-29 07:23:34

Definition
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<route id="route1" xmlns="http://camel.apache.org/schema/spring">
    <from uri="timer:test"/>
    <to uri="log:test" id="to1"/>
</route>

You can see some statistics (the number of processed exchanges, the processing time, etc) and a XML rendering of your route (whatever DSL used to define the route).

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

camel:show-route

The *camel:show-route* command renders the route in XML. It's independent from the DSL used to define the route:

Code Block

karaf@root> camel:show-route route1 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<route id="route1" xmlns="http://camel.apache.org/schema/spring">
    <from uri="timer:test"/>
    <to uri="log:test" id="to1"/>
</route>

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

camel:start-route

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

Code Block

karaf@root> camel:start-route route1

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

camel:stop-route

The *camel:stop-route* command stops a Camel route:

Code Block

karaf@root> camel:stop-route route1

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