Versions Compared

Key

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

...

Code Block
from("direct:start").
  recipientList().xquery("concat('mock:foo.', /person/@city)", String.class);

Variables

The IN message body will be set as the contextItem. Besides this these Variables is also added as parameters:

Variable

Type

Description

exchange

Exchange

The current Exchange

out

Message

The OUT message (if any)

this

Object

Any exchange.properties and exchange.in.headers and any additional parameters set using setParameters(Map).

Using XML configuration

If you prefer to configure your routes in your Spring XML file then you can use XPath expressions as follows

...