Created
July 14, 2014 07:26
-
-
Save elek/8f817dd11ad6b6d7a065 to your computer and use it in GitHub Desktop.
This file contains 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
<routes xmlns="http://camel.apache.org/schema/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring-2.13.2.xsd"> | |
<route id="bar"> | |
<from uri="timer://simple?fixedRate=true&period=10s"/> | |
<to uri="bean:HelloWorld"></to> | |
<choice> | |
<when> | |
<mvel>request.body.number == '123456789'</mvel> | |
<log message="ok"></log> | |
</when> | |
<otherwise> | |
<to uri="log:route1"/> | |
</otherwise> | |
</choice> | |
<to uri="log:route1"/> | |
<to uri="direct-vm:route2"></to> | |
</route> | |
</routes> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment