来自 tcp 套接字的消息以块的形式处理,而不是作为一个整体处理
我正在尝试建立到 spring integraton 网关的 tcp 套接字连接。字节 arrat 消息相当大,我已设置 ByteArrayLengthHeaderSerializer 来通过修改属性 maxMessageSize 来处理消息。然而,消息是以块的形式处理的,在调用服务激活器之前,第一个大小只有 28 字节。我知道有一个可以使用的聚合器,但我想我可能错误地设置了集成组件。我正在使用基本的 spring jars 3.0.5 和集成 2.0.2,integrationContext.xml 在这里:
有人有什么建议吗 谢谢
I am trying to establish a tcp socket connection to a spring integraton gateway. The byte arrat messages are rather large and I have setup the ByteArrayLengthHeaderSerializer to handle it by modding the property maxMessageSize to handle the messages. However, the messages are instead being handled in chunks, the first only 28 bytes in size before the service-activator is called. I know that there is an Aggregator that could be used but I was thinking I might have setup the integration components incorrectly. I am using the basic spring jars 3.0.5 and the integration 2.0.2 and the integrationContext.xml is here:
Does anyone have any suggestions
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
源有一个损坏的标头值,它对即将到来的消息的大小给出了错误的读数。一旦标题被修复,就没有问题了。
The source had a mangled header value which gave a false reading as to the size of the message coming. Once the header was fixed there was no problem.