【发布时间】:2016-03-11 02:39:46
【问题描述】:
我有一个在远程主机上运行的程序,我需要连接到该主机,握手,然后收听消息。我已经设置了以下骆驼路线:
<route>
<from uri="netty:tcp://localhost:50001?decoders=#decoders&sync=false" />
<bean ref="TransformMessage" method="inboundDecoder" />
<to uri="eventadmin:messages/aacus/inbound" />
</route>
<route>
<from uri="eventadmin:messages/aacus/outbound" />
<bean ref="TransformMessage" method="outboundEncoder" />
<to uri="netty:tcp://192.168.0.111:50001?allowDefaultCodec=false&sync=false" />
</route>
我的问题是如何进行这项工作?如果我使用
建立路线<from uri="netty:tcp://192.168.0.111:50001?decoders=#decoders&amp;sync=false" />
由于绑定错误而失败。
如何在不修改服务器的情况下设置连接以响应特定端口?
【问题讨论】:
标签: tcp apache-camel netty