Camel-blueprint
来源:互联网 发布:js防水涂料施工图集 编辑:程序博客网 时间:2024/06/05 05:30
在camel路由时,使用blueprint属性占位器。
camel支持blueprint,blueprint提供属性占位器服务。
camel支持“覆盖配置”公约,所以我们得在xml文档中定义blueprint属性占位器。
样例:
- <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
- xsi:schemaLocation="
- http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/
- blueprint/v1.0.0/blueprint.xsd">
- <!-- OSGI blueprint property placeholder -->
- <cm:property-placeholder id="myblueprint.placeholder"
- persistent-id="camel.blueprint">
- <!-- list some properties for this test -->
- <cm:default-properties>
- <cm:property name="result" value="mock:result"/>
- </cm:default-properties>
- </cm:property-placeholder>
- <camelContext xmlns="http://camel.apache.org/schema/blueprint">
- <!-- in the route we can use {{ }} placeholders which will lookup in blueprint
- as Camel will auto detect the OSGi blueprint property placeholder and use
- it -->
- <route>
- <from uri="direct:start"/>
- <to uri="mock:foo"/>
- <to uri="{{result}}"/>
- </route>
- </camelContext>
- </blueprint>
说明:缺省情况下,camel会探测和使用OSGI blueprint的属性占位器服务。我们可以通过设置属性:useBlueprintPropertyResolver=false(在<camelContext>中设置)来制止这种默认行为。
- Camel-blueprint
- Apache Camel http4 blueprint
- Camel blueprint + karaf 企业总线架构
- blueprint
- Blueprint
- BLUEPRINT
- blueprint
- Camel
- Camel
- Camel
- adobe blueprint
- Blueprint教程
- Blueprint 使用手记
- Blueprint入门
- OSGI Blueprint
- Confluence--BluePrint
- API Blueprint
- Flask-Blueprint
- HTTpClient实现get方式下载
- {dede:php}生成一个随机整数
- 2013年、2012、2011年中国软件业收入百强名录 看中国软件业这三年的变化
- 3389 修改端口批处理
- Nuke中解决渲染闪烁的办法
- Camel-blueprint
- 根据上排给出十个数,在其下排填出对应的十个数 要求下排每个数都是先前上排那十个数在下排出现的次数
- Apache的ab负载测试说明
- alter database datafile offline drop 与 alter tablespace drop datafile 区别
- 第三章 高级Bean的装配
- Linux man命令的使用方法
- 帝国ecms的win2008下设置了目录权限无法上传
- IBM TIM 开发接口参考文档地址
- 表空间的常用操作