...
You can also use other languages that than Simple such as XPath - this requires to prefix with language: as shown below (simple language is the default language). If you do not specify language: then the endpoint is a component name. And in some cases there is both a component and language with the same name such as xquery.
Code Block | ||||
---|---|---|---|---|
| ||||
<route>
<from uri="direct:start"/>
<toD uri="language:xpath:/order/@uri"/>
</route> |
...
Code Block |
---|
from("direct:start")
.toD("language:xpath:/order/@uri"); |
You can also concat multiple Language(s) together using the plus sign +
such as shown below:
Code Block | ||||
---|---|---|---|---|
| ||||
<route>
<from uri="direct:start"/>
<toD uri="jms:${header.base}+language:xpath:/order/@id"/>
</route> |
...
Code Block |
---|
from("direct:start")
.toD("jms:${header.base}+language:xpath:/order/@id"); |
You can concat as many languages as you want, just separate them with the plus sign
...