/
spring-config.xml
42 lines (35 loc) · 1.94 KB
/
spring-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:amq="http://activemq.apache.org/schema/core"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<!-- embedded broker -->
<!-- <amq:broker brokerName="testBroker" useJmx="false" persistent="false"> -->
<!-- <amq:transportConnectors> -->
<!-- <amq:transportConnector uri="tcp://localhost:61616" /> -->
<!-- </amq:transportConnectors> -->
<!-- </amq:broker> -->
<bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
<bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory" ref="jmsConnectionFactory" />
<property name="transacted" value="false" />
</bean>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
<camel:camelContext id="context1" trace="false"> <!-- set trace to true to get more debug infor -->
<camel:jmxAgent id="agent" disabled="true" />
<camel:routeBuilder ref="basicRoute" />
<camel:routeBuilder ref="chartRoute" />
<camel:routeBuilder ref="heartbeatRoute" />
</camel:camelContext>
<bean id="basicRoute" class="com.myown.app.camelwss.route.BasicWSRoute" />
<bean id="chartRoute" class="com.myown.app.camelwss.route.ChartWSRoute" />
<bean id="heartbeatRoute" class="com.myown.app.camelwss.route.HeartbeatWSRoute" />
</beans>