将消息发布到另一台计算机上的 JMS 服务器
我需要将消息发布到在不同计算机上运行的 JMS 服务器上的主题。远程计算机上的服务器是 Glassfish v3 (OpenMQ)。通过阅读这里的其他帖子,我认为我需要告诉远程代理接受来自与他自己的 IP 不同的 IP 的 JMS 消息,即不是本地主机。实际上,我希望远程代理能够接受来自远程和本地计算机的消息。
问题是,我不知道如何配置远程计算机的嵌入式代理 OpenMQ。我认为从 Glassfish 控制台是可能的,但无法弄清楚。在 jboss 中,您可以使用 -b 0.0.0.0 执行,但远程计算机未运行 jboss。它是 Glassfish/OpenMQ。正如你所知,我对这一切都很陌生。
我想我知道如何在将消息发布到另一台远程计算机的“本地”计算机上设置 JNDI 上下文。我见过例子。
I need to publish messages to a topic on a JMS server running on a different machine. The server on the remote machine is Glassfish v3 (OpenMQ). From reading other posts here, I think I need to tell the remote broker to accept JMS messages from a different IP than his own i.e not localhost. Actually, I'd like that remote broker to accept message from remote as well as the local machine.
Problem is, I can't figure out how to configure the remote machine's embedded broker, OpenMQ. I think it is possible from the Glassfish console, but can't figure it out. In jboss you'd execute with a -b 0.0.0.0, but the remote machine is not running jboss. It's Glassfish/OpenMQ. I'm new to all this as you can tell.
I think I know how to set up the JNDI context on the "local" machine that is publishing the messages to the other, remote machine. I've seen examples.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Glassfish内置的OpenMQ配置文件是:
此处您可能需要设置
虽然默认值似乎根据 文档。
The Glassfish built-in OpenMQ configuration file is:
Here you may want to set
Though the default seems to be accepting connections from anywhere according to the docs.