Skip to content

Instantly share code, notes, and snippets.

@hpirosha
Created December 4, 2012 12:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hpirosha/4203499 to your computer and use it in GitHub Desktop.
demoOne_camel_spring
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment