apache camel 条件路由
2016-03-26 09:40
423 查看
<camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route id="example"> <from uri="cxf:bean:myListenerEndpoint?dataFormat=POJO&synchronous=true" /> <log message="The expected operation is :: ${headers.operationName}" /> <choice> <when> <simple>${headers.operationName} == 'RegisterUser'</simple> <bean ref="processor" method="processMessage"/> <to uri="xslt:file:resources/service/2.0.0/UserRegistration.xsl"/> </when> <when> <simple>${headers.operationName} == 'UpdateUser'</simple> <!-- Do the update user logic here --> <bean ref="processor" method="updateUser" /> </when> </choice> <to uri="cxf:bean:myTargetEndpoint"/> </route> </camelContext>
相关文章推荐
- org/apache/hadoop/hive/cli/CliDriver : Unsupported major.minor version 51.0
- PHP每日学习记录——PHP、APACHE、MYSQL的安装
- Maven 遇到mybatis 发生org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- Apache Arrow源码分析(一)——简介和框架
- apache服务安装
- Apache Maven 入门篇(下)
- Apache Maven 入门篇 ( 上 )
- apache的工作模式prefork和worker理解
- org.apache.hadoop.hbase.TableExistsException: hbase:namespace
- Apache Hadoop源代码
- apache commons fileupload 1.3.1(一)Mime部分
- 升级Apache到最新版
- phpstudy中apache或mysql无法启动
- apache链接svn出现的错误
- apache 更改默认网站目录 及 CentOS Apache配置详解
- Apache配置支持目录浏览
- Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
- apache 详细参数命令 虚机
- 使用mven编译apache-shiro出错
- 3. apache 调优