forked from abouchama/camel-springboot-rest-ose
-
Notifications
You must be signed in to change notification settings - Fork 1
/
camel-context.xml
21 lines (18 loc) · 977 Bytes
/
camel-context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
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.xsd">
<!-- You could also define a traditional camel context here -->
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route id="rest-getPersonId">
<from uri="direct:getPersonId"/>
<log message="This request is handled by this POD: {{env:HOSTNAME}}"/>
<setBody>
<simple>${bean:applicationConfigBean?method=getGreeting} ${headers.personId} ! from pod: {{env:HOSTNAME}}</simple>
</setBody>
</route>
</camelContext>
</beans>