需要一步一步的过程来使用spring&创建tcp服务器 - 客户端。日食

时间:2014-11-18 12:39:25

标签: tcp spring-integration

我是Spring框架和Spring Integration的新手。当我浏览Spring文档http://docs.spring.io/spring-integration/reference/html/ip.html时。我发现很难开始。我想逐步编写一个应用程序。从* .xml文件写入,运行它,编辑存根并处理它们。

虽然我可以看到很多示例显示TCP / UDP客户端和服务器,但对于像我这样的新手来说,很难。

提前致谢, Velman R

1 个答案:

答案 0 :(得分:1)

请参阅tcp-client-server sample app that shows the use of both inbound and outbound gateways to invoke an echo service over TCP

它使用默认的CRLF来分隔消息;请务必阅读the documentation中有关(de)序列化程序的部分。