Name
Dynamic Router — Routes messages based on rules specified by the recipients at start up
Usage
The dynamic router pattern uses an expression to determine how to route messages. As each processor completes, the expression is evaluated to determine the next location. The route completes when the expression evaluates to null.
![]() | Important |
---|---|
The dynamic router's expression must be able to evaluate to false. If it cannot, the route will slip into an infinite processing loop. |
The dynamic router pattern can be used anywhere in the body of a route.
Properties
Table 3.3 describes the properties you can specify using the properties editor.
Table 3.3. Dynamic Router Properties
Name | Description |
---|---|
Expression | Specifies the expression used to determine the next processing step in the chain. The expression must evaluate to false for the route to complete. |
language | Specifies the expression language used to process the expression. |
Ignore Invalid Endpoints | Specifies if router will skip steps that are invalid without throwing an exception. |
Uri Delimiter | Specifies a delimiter to separate the list of endpoint URIs the router generates. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |
Related topics
Expression and Predicates Languages |
Configuring the Fuse IDE route editor in Using Fuse IDE |