-
Notifications
You must be signed in to change notification settings - Fork 0
/
camel.xml
48 lines (39 loc) · 1.59 KB
/
camel.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
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:c="http://camel.apache.org/schema/spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
<c:camelContext>
<c:route>
<c:from uri="timer:timer"/>
<c:bean ref="MyProcessor"/>
<c:to uri="solace-jcsmp:topic:timerInTopic"/>
</c:route>
<c:route>
<c:from uri="solace-jcsmp:queue:rabbitOutQueue"/>
<c:to uri="log:SOLACE-RABBIT-LOGGER?level=WARN"/>
<c:to uri="rabbitmq://localhost/rabbitIn?queue=rabbitInQueue&autoDelete=false"/>
</c:route>
<c:route>
<c:from uri="rabbitmq://localhost/rabbitOut?queue=rabbitOutQueue&autoDelete=false"/>
<c:bean ref="MyProcessor"/>
<c:to uri="log:RABBIT-LOGGER?level=WARN"/>
<c:to uri="solace-jcsmp:topic:rabbitInTopic"/>
</c:route>
<c:route>
<c:from uri="solace-jcsmp:topic:activeOutDirect"/>
<c:to uri="log:SOLACE-ACTIVEMQ-LOGGER?level=WARN"/>
<c:to uri="activemq:topic:activeInTopic"/>
</c:route>
<c:route>
<c:from uri="activemq:queue:activeOutQueue"/>
<c:bean ref="MyProcessor"/>
<c:to uri="log:ACTIVEMQ-LOGGER?level=WARN"/>
<c:to uri="solace-jcsmp:topic:activeInTopic"/>
</c:route>
</c:camelContext>
</beans>