Created
December 4, 2012 12:50
-
-
Save hpirosha/4203499 to your computer and use it in GitHub Desktop.
demoOne_camel_spring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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&password=admin&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