Red Hat Training

A Red Hat training course is available for Red Hat Fuse

7.2. Running routes as a local Camel context

Overview

The simplest way to run an Apache Camel route is as a Local Camel Context. This method enables you to launch the route directly from Project Explorer's context menu. When you run a route from the context menu, the tooling automatically creates a runtime profile for you. You can also create a custom runtime profile for running your route.
Your route runs as if it were invoked directly from the command line and uses Apache Camel's embedded Spring container. You can configure a number of the runtime parameters by editing the runtime profile.

Procedure

To run a route as a local Camel context:
  1. In Project Explorer, select a routing context file.
  2. Right-click it to open the context menu, and then select Run AsLocal Camel Context.
    Note
    Selecting Local Camel Context (without tests) directs the Red Hat JBoss Fuse Tooling to run the project without performing validation tests, which may be faster.

Result

The Console view displays the output generated from running the route.

Related topics

Section 7.3.1, “Editing a Local Camel Context runtime profile”