Table of Contents
Contains all elements that make up an individual route in a routing context
The Route pattern represents the <route/> element within the
<camelContext/> element in a routing context file. You can insert
multiple Route patterns inside the <camelContext/> element to build a
multiple route project.
All route-building patterns and components must be placed on the canvas within a Route node.
Table 53, “Route Properties” describes the
properties you can specify for a route using the Properties
editor.
Table 53. Route Properties
| Name | Description |
|---|---|
| Specifies whether to start the route automatically when Camel starts up. The default is true. |
| Specifies a delay, in milliseconds, that slows down message processing. This is useful during debugging, making it easier to inspect the logs while tracking messages. The default is 0. |
| Specifies a textual description for the route. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel. |
| Specifies a reference to a bean that defines and applies an error handler. |
| Specifies the name of a group of which the route is a member. This property is informational only. It is not used by Apache Camel. |
| Specifies whether to convert fault messages into exceptions. Intended for applications deployed into a JBI container, so the Camel error handler can react to faults. The default is false. |
| [Required] Specifies a unique id for the route. This id appears in the generated XML in Source view, on the label of the route node on the canvas, and in log entries. The tooling automatically generates and assigns a default Id, but you can change it. |
| Specifies whether to enable/disable Message History. When enabled,
Apache Camel captures how the exchange is routed as an
|
| Specifies a reference to a bean that defines and applies a policy that controls routes at runtime. The bean can implement any logic that you want Apache Camel to invoke at route startup or at route shutdown. |
| Specifies how to gracefully shut down the route. The options are:
|
| Specifies how to shut down a running task, and determines how a route consumer behaves during the shutdown. The options are:
|
| Configures the ordering of the routes being started. |
| Specifies whether to cache streams that otherwise could not be accessed multiple times. This is necessary for implementing redelivery during error handling, which requires reading the stream multiple times. The default is false. |
| Specifies whether to trace the path of an exchange through a particular route. The default is false. |