TCP Sample - Use <o-t-s-t />
Replace expression-based transformers with <o-t-s-t/> now that it can handle `byte[]`.
This commit is contained in:
@@ -33,9 +33,8 @@
|
|||||||
request-timeout="10000"
|
request-timeout="10000"
|
||||||
reply-timeout="10000"/>
|
reply-timeout="10000"/>
|
||||||
|
|
||||||
<int:transformer id="clientBytes2String"
|
<int:object-to-string-transformer id="clientBytes2String"
|
||||||
input-channel="clientBytes2StringChannel"
|
input-channel="clientBytes2StringChannel" />
|
||||||
expression="new String(payload)"/>
|
|
||||||
|
|
||||||
<!-- Server side -->
|
<!-- Server side -->
|
||||||
|
|
||||||
@@ -57,10 +56,9 @@
|
|||||||
<bean id="echoService"
|
<bean id="echoService"
|
||||||
class="org.springframework.integration.samples.tcpclientserver.EchoService" />
|
class="org.springframework.integration.samples.tcpclientserver.EchoService" />
|
||||||
|
|
||||||
<int:transformer id="serverBytes2String"
|
<int:object-to-string-transformer id="serverBytes2String"
|
||||||
input-channel="serverBytes2StringChannel"
|
input-channel="serverBytes2StringChannel"
|
||||||
output-channel="toSA"
|
output-channel="toSA"/>
|
||||||
expression="new String(payload)"/>
|
|
||||||
|
|
||||||
<int:transformer id="errorHandler"
|
<int:transformer id="errorHandler"
|
||||||
input-channel="errorChannel"
|
input-channel="errorChannel"
|
||||||
|
|||||||
@@ -39,9 +39,8 @@
|
|||||||
|
|
||||||
<int:channel id="clientBytes2StringChannel"/>
|
<int:channel id="clientBytes2StringChannel"/>
|
||||||
|
|
||||||
<int:transformer id="clientBytes2String"
|
<int:object-to-string-transformer id="clientBytes2String"
|
||||||
input-channel="clientBytes2StringChannel"
|
input-channel="clientBytes2StringChannel" />
|
||||||
expression="new String(payload)"/>
|
|
||||||
|
|
||||||
<!-- Server side -->
|
<!-- Server side -->
|
||||||
<!-- When creating the socket factory on the server side, we specify both the serializer and deserializer
|
<!-- When creating the socket factory on the server side, we specify both the serializer and deserializer
|
||||||
|
|||||||
Reference in New Issue
Block a user