myTransform.xquery文件:
<persons>
{
for $b in (persons/person)
return
if($b/age>20)
then
<man>
{$b/firstName}
</man>
else
""
}
</persons>
message.xml
<persons>
<person user="james">
<firstName>James</firstName>
<lastName>Strachan</lastName>
<city>London</city>
<age>20</age>
</person>
<person user="xiaofei">
<firstName>xiaofei</firstName>
<lastName>liu</lastName>
<city>ShangHai</city>
<age>23</age>
</person>
<person user="tony">
<firstName>tony</firstName>
<lastName>liu</lastName>
<city>ShangHai</city>
<age>23</age>
</person>
</persons>
camelcontext.xml:
<route>
<from uri="file:src/data?noop=true"/>
<to uri="xquery:myTransform.xquery"/>
<to uri="file:target/outputFiles"/>
</route>
out:
<persons>
<man>
<firstName>xiaofei</firstName>
</man>
<man>
<firstName>tony</firstName>
</man>
</persons>
分享到:
相关推荐
Camel in Action is a Camel tutorial full of small examples showing how to work with the integration patterns. It starts with core concepts like sending, receiving, routing, and transforming data. It ...
Camel in Action is a Camel tutorial full of small examples showing how to work with the integration patterns. It starts with core concepts like sending, receiving, routing, and transforming data. It ...
2: Routing with Camel - AVAILABLE Part 2 Core Camel 3: Transforming Data with Camel - AVAILABLE 4: Using Beans with Camel - AVAILABLE 5: Error Handling - AVAILABLE 6: Testing with Camel - ...
Camel3 Camel6函数等matlab源代码
Integrate your applications with Apache Camel and enhance efficiency and scalability Master all the EIPs supported by Apache Camel as well as advanced features like error handling and testing Packed ...
ApacheCamel-JDBC Apache Camel JDBC组件 代码样例Demo
Camel服务集成,服务编排操作文档
Apache Camel 开发使用指南中文版
Camel In Action一书第四章的中文版。
camel, Apache camel 镜像 Apache camel 是基于已知企业集成模式的强大开放源代码集成框架,它具有强大的Bean集成。简介flex允许你创建企业集成模式,以基于基于Java的域特定语言( 或者 Fluent API ) 或者基于 Sc
09-ApacheCamel-Timer Apache Camel Timer组件 定时器 代码Demo
ApacheCamel-FTP ApacheCamel-FTP Apache Camel FTP组件 Demo 样例
Camel in action 一书的PDF电子书 和源代码 The book is divided into three parts: ■ Part 1—First steps ■ Part 2—Core Camel ■ Part 3—Out in the wild
Camel in Action is a Camel tutorial full of small examples showing how to work with the integration patterns. It starts with core concepts like sending, receiving, routing, and transforming data. It ...
camel direct http jdbc mybatis 等等组件 骆驼 camel部分源码分析
Apache Camel 作为集成项目的利器,针对应用集成场景的抽象出了一套消息交互模型,通过组件的方式进行第三方系统的接入,目前Apache Camel已经提供了300多种组件能够接入HTTP,JMS,TCP,WS-*,WebSocket 等多种传输...
camel-manual-2.0 camel ESB EIP EAI
apache-camel 开发sample Apache Camel是一个基于规则路由和中介引擎,提供企业集成模式的Java对象(POJO)的实现,通过应用程序接口(或称为陈述式的Java领域特定语言(DSL))来配置路由和中介的规则。领域特定语言...
用camel-cxf调用webservice和发布一个webservice接口例子,首先启动QueryServiceMain主函数启动webservice接口,然后启动测试类TestWebservice。例子主要是实现java代码实现camel调用webservice接口