Nicolas Massé 6 years ago
parent
commit
a09e8a179e
  1. 6
      .gitignore
  2. 12
      src/main/resources/spring/camel-context.xml

6
.gitignore

@ -0,0 +1,6 @@
/target/
.classpath
.project
/bin/
.vscode
.settings

12
src/main/resources/spring/camel-context.xml

@ -3,14 +3,14 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring https://camel.apache.org/schema/spring/camel-spring.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring https://camel.apache.org/schema/spring/camel-spring.xsd">
<sslContextParameters id="ssl" xmlns="http://camel.apache.org/schema/spring"/> <sslContextParameters id="ssl" xmlns="http://camel.apache.org/schema/spring"/>
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route id="simple-route"> <route id="save-next-todo">
<from id="route-timer" uri="timer://foo?period=30000"/> <from id="route-timer" uri="timer://delay?period=30000"/>
<to id="_to1" uri="netty4-http:https:{{apicast.hostname}}:443/todo/next?ssl=true&amp;sslContextParameters=#ssl&amp;user_key={{apicast.apikey}}"/> <to id="get-next-todo" uri="netty4-http:https:{{apicast.hostname}}:443/todo/next?ssl=true&amp;sslContextParameters=#ssl&amp;user_key={{apicast.apikey}}"/>
<log id="route-log" message=">>> ${body}"/> <log id="debug-log" message=">>> ${body}"/>
<setBody id="_setBody2"> <setBody id="json-path(.name)">
<jsonpath>$.name</jsonpath> <jsonpath>$.name</jsonpath>
</setBody> </setBody>
<to id="_to2" uri="file:/tmp?fileName=next-todo.txt"/> <to id="next-todo-file" uri="file:/tmp?fileName=next-todo.txt"/>
</route> </route>
</camelContext> </camelContext>
</beans> </beans>

Loading…
Cancel
Save