-
Notifications
You must be signed in to change notification settings - Fork 3
/
spring-integration-context.xml
39 lines (34 loc) · 1.64 KB
/
spring-integration-context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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:int="http://www.springframework.org/schema/integration"
xmlns:int-stream="http://www.springframework.org/schema/integration/stream"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration/stream
http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd">
<!-- See also:
http://static.springsource.org/spring-integration/reference/htmlsingle/#gateway-proxy
http://www.eaipatterns.com/MessagingGateway.html -->
<int:gateway id="gateway"
default-request-timeout="5000"
default-reply-timeout="5000"
default-request-channel="requestChannel"
default-reply-channel="replyChannel"
service-interface="com.itprosmx.spring.integration.service.StringConversionService">
<int:method name="convertToUpperCase"/>
</int:gateway>
<!-- See also:
http://static.springsource.org/spring-integration/reference/htmlsingle/#service-activator
http://www.eaipatterns.com/MessagingAdapter.html -->
<int:service-activator id="serviceActivator"
input-channel="requestChannel" output-channel="replyChannel"
expression="payload.toUpperCase()"/>
<int:channel id="replyChannel"/>
<int:channel id="requestChannel"/>
<!--
<int-stream:stdout-channel-adapter channel="replyChannel" append-newline="true"/>
-->
</beans>