Camel Spring配置参考
来源:互联网 发布:淘宝网凡客 编辑:程序博客网 时间:2024/05/16 09:53
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xmlns:camel="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<context:component-scan base-package="com.nantian.ecm.server" />
<camel:camelContext id="camel">
<camel:package>com.nantian.ecm.server</camel:package>
<!-- camel:jmxAgent id="agent" createConnector="true" connectorPort="1099" /-->
<camel:endpoint id="ReqForMetadata" uri="jms:queue:LOCAL.REQ.META" />
<camel:endpoint id="ReqForObject" uri="jms:queue:LOCAL.REQ.OBJ" />
<camel:endpoint id="ReqForSegment" uri="jms:queue:LOCAL.REQ.SEG" />
<camel:endpoint id="ResForObject" uri="jms:queue:LOCAL.RES.OBJ" />
<camel:endpoint id="ResForSegment" uri="jms:queue:LOCAL.RES.SEG" />
<camel:endpoint id="ReqBasedOnHttp" uri="jetty:http://PC-Kevin:9082/ecm/EcmService" />
<!-- MQ based components navigation start here -->
<camel:route id="metaDataHandler">
<camel:from ref="ReqForMetadata" />
<camel:to uri="metaMessageReader" />
<camel:choice>
<camel:when id="queryDocByDocId">
<camel:simple>${in.header.operation}=="queryDocByDocId"</camel:simple>
<camel:to uri="queryDocByDocId" />
<camel:to uri="mqFileSender" />
</camel:when>
<camel:when id="queryDocVersionsByDocId">
<camel:simple>${in.header.operation}=="queryDocVersionsByDocId"</camel:simple>
<camel:to uri="queryDocVersionsByDocId" />
</camel:when>
</camel:choice>
<camel:to uri="generalResponseOrgnizer" />
</camel:route>
<camel:route id="objectDataHandler">
<camel:from ref="ReqForObject" />
<camel:to uri="objectMessageReader" />
<camel:choice>
<camel:when>
<camel:simple>${header.operation} == 'addDocuments'</camel:simple>
<camel:to uri="addDocuments" />
</camel:when>
<camel:when>
<camel:simple>${header.operation} == 'updateDocuments'</camel:simple>
<camel:to uri="updateDocuments" />
</camel:when>
</camel:choice>
</camel:route>
<camel:route id="segmentDataHandler">
<camel:from ref="ReqForSegment" />
<camel:to uri="segmentMessageReader" />
</camel:route>
<!-- MQ based components navigation end here -->
<!-- Http based components navigation start here -->
<camel:route>
<camel:from ref="ReqBasedOnHttp" />
<camel:to uri="httpMessageReader" />
<camel:choice>
<camel:when>
<camel:simple>${header.operation} == 'queryDocByDocId'</camel:simple>
<camel:to uri="queryDocByDocId" />
<camel:to uri="generalResponseOrgnizer" />
</camel:when>
<camel:when>
<camel:simple>${header.operation} == 'queryDocVersionsByDocId'</camel:simple>
<camel:to uri="queryDocVersionsByDocId" />
<camel:to uri="generalResponseOrgnizer" />
</camel:when>
<camel:when>
<camel:simple>${header.operation} == 'addDocuments'</camel:simple>
<camel:to uri="addDocuments" />
<camel:to uri="generalResponseOrgnizer" />
</camel:when>
<camel:when>
<camel:simple>${header.operation} == 'updateDocuments'</camel:simple>
<camel:to uri="updateDocuments" />
<camel:to uri="generalResponseOrgnizer" />
</camel:when>
</camel:choice>
</camel:route>
<!-- Http based components navigation end here -->
</camel:camelContext>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.ibm.mq.jms.MQConnectionFactory">
<property name="queueManager" value="TestQueueCtrl" />
<property name="hostName" value="localhost"></property>
<property name="port" value="1414"></property>
<property name="CCSID" value="819"></property>
</bean>
</property>
</bean>
<aop:aspectj-autoproxy />
</beans>
- Camel Spring配置参考
- Spring集成Camel
- Camel事务配置!!
- camel配置webService
- camel配置(1)
- camel配置(2)
- camel读取配置信息
- camel 配置 https访问配置
- Apache Camel框架集成Spring
- Apache Camel框架集成Spring
- Apache Camel框架集成Spring
- Apache Camel框架集成Spring
- Apache Camel框架集成Spring
- camel-spring项目启动过程
- camel-file 集成spring使用
- hibernate与spring的配置参考
- spring定时器一些时间配置例子参考
- Spring中配置线程池ThreadPoolExecutor参考
- QQ窗体上滑的效果
- xfire webservice要实现天气预报,怎么获得返回的数据呢?
- lazycode SQL类
- 蓝屏代码大全
- 前端 验证数据的js
- Camel Spring配置参考
- 笔试面试之递归颠倒栈
- Ubuntu10.04上apache2: bad user name ${APACHE_RUN_USER}问题解决
- MOSS中WebPart开发简介
- 也谈Foxmail的邮件特快专递
- 简单论
- 关于UC864邻小区参数获取不完整的问题
- struts2中action如何获取Session,jsp页面参数等等信息的值
- 我毕业咯