diff --git a/docs/src/reference/docbook/router.xml b/docs/src/reference/docbook/router.xml index f1a4eaacaa..3e5e50a8f4 100644 --- a/docs/src/reference/docbook/router.xml +++ b/docs/src/reference/docbook/router.xml @@ -208,12 +208,23 @@ Sometimes the routing logic may be simple and writing a separate class for it and configuring it as a bean may seem like overkill. As of Spring Integration 2.0 we offer an alternative where you can now use SpEL - to implement simple computations that previously required a custom POJO router. + to implement simple computations that previously required a custom POJO router. Generally a SpEL expression is evaluated and the + result is mapped to a channel: + + + + + +]]> + + To simplify things even more, the SpEL expression may evaluate to a channel name: ]]> In the above configuration the result channel will be computed by the SpEL expression which simply concatenates the value of the payload with the literal String 'Channel'. + Another value of SpEL for configuring routers is that an expression can actually return a Collection,