INT-3692: Add Annotation-Based TCP Demo

This commit is contained in:
Gary Russell
2015-05-11 15:02:47 +01:00
parent 49e0a25e8e
commit b5e7cfa16a
2 changed files with 157 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ Several variations of the sample are provided:
* Serializer Demo
* Using the Stx-Etx [Serializer][]/[Deserializer][]
* Using a Custom [Serializer][]/[Deserializer][]
* Annotation based client-server Demo (JUnit test only)
### Client-Server Demo
@@ -135,6 +136,11 @@ Some use cases may dictate you needing to create your own stream handling serial
You can run the example by executing JUnit test **TcpServerCustomSerializerTest**.
#### Annotation-based Configuration
A simple client server test using entirely annotation-based configuration is shown in **TcpClientServerAnnotationDemoTest**.
[ByteArrayCrLfSerializer]: http://static.springsource.org/spring-integration/api/org/springframework/integration/ip/tcp/serializer/ByteArrayCrLfSerializer.html
[ByteArrayStxEtxSerializer]: http://static.springsource.org/spring-integration/api/org/springframework/integration/ip/tcp/serializer/ByteArrayStxEtxSerializer.html
[control character]: http://en.wikipedia.org/wiki/Control_character