如何在activemq中指定TCP传输是服务器模式(监听)还是客户端模式?

发布于 2024-07-08 15:07:22 字数 300 浏览 7 评论 0原文

Spring 注入端点的示例如下:

<endpoint id="hl7listener" uri="mina:tcp://localhost:8888?sync=true&amp;codec=hl7codec"/>

如何设置客户端模式端点,以便连接到另一台服务器上的特定端口?

如何配置端点以侦听入站连接? (该示例似乎是一个侦听器,如其描述性 id 所示,但为什么?)

注意:我实际上并未使用 HL7 协议或编解码器。 我将开发自己的专有协议编解码器。

The example given for a spring injected endpoint is as follows:

<endpoint id="hl7listener" uri="mina:tcp://localhost:8888?sync=true&codec=hl7codec"/>

How do I setup a client mode endpoint such that is will connect to a specific port on another server?

How do I configure the endpoint to listen for inbound connections? (the example seems to be a listener as indicated by its descriptive id but why?)

Note: I am not actually using the HL7 protocol or codec. I will be developing my own for a proprietary protocol codec.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文