public
Created

demoOne_camel_spring

  • Download Gist
applicationContext.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
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-2.10.1.xsd">
 
<camelContext id="demoCamelContext" xmlns="http://camel.apache.org/schema/spring">
<route id="demoCBRRoute">
<from
uri="activemq:queue:NewOrders?brokerURL=tcp://192.168.64.144:61616" />
<choice>
<when>
<xpath>/order/product = 'gadget'</xpath>
<to uri="activemq:GadgetOrders?brokerURL=tcp://192.168.64.144:61616" />
</when>
<otherwise>
<to
uri="ftp://192.168.101.3/camel-demo?username=admin&amp;password=admin&amp;binary=true" />
</otherwise>
</choice>
</route>
 
</camelContext>
 
</beans>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.