Glassfish 3.1 - 如何在多个域上配置 JMS?

发布于 2024-12-19 05:05:08 字数 882 浏览 4 评论 0原文

由于类加载问题,我需要在 Glassfish 3.1.1 的同一实例中的不同域中部署 Ear 和 War。战争将消息发送到队列,耳朵中的 MDB 应该接收并执行它。

JMS 在域中设置如下:

domain1 default_JMS_host (server-config | Java Message Service | JMS Hosts):

Type = local
Host = localhost
Port = 7676

domain2 default_JMS_host (server-config | Java Message Service | JMS Hosts): domain2 default_JMS_host (server-config | Java Message Service | JMS Hosts) JMS 主机):

Type = remote
Host = localhost
Port = 7676

最初我将domain2 上的端口设置为5076,但这导致域启动时出现连接拒绝异常。

通过此设置,一切似乎都可以正常加载(domain2 server.log 中没有错误),但它不会拾取由 war 文件放入队列中的消息。我已经确认战争使用以下命令将消息放入队列中:

/<glassfish>/mq/bin/imqcmd list dst -b localhost:7676 -u admin

我尝试搜索如何在同一个 Glassfish 实例中设置具有多个域的 JMS,但没有找到任何有用的东西。有人可以向我指出有关如何设置此功能的好资源吗?

Due to classloading issues I need to deploy an ear and a war in separate domains in the same instance of Glassfish 3.1.1. The war sends messages to a queue and and MDB in the ear should receive and action it.

The JMS is set up in the domains thusly:

domain1 default_JMS_host (server-config | Java Message Service | JMS Hosts):

Type = local
Host = localhost
Port = 7676

domain2 default_JMS_host (server-config | Java Message Service | JMS Hosts):

Type = remote
Host = localhost
Port = 7676

Originally I had the port on domain2 set to 5076, but that caused connection refused exceptions on domain startup.

With this setup everything seems to load fine (no errors in domain2 server.log) but it doesn't pick up the messages put in the queue by the war file. I have confirmed that the messages are being put in the queue by the war using the command:

/<glassfish>/mq/bin/imqcmd list dst -b localhost:7676 -u admin

I have tried searching for how to set up JMS with multiple domains in the same Glassfish instance, but haven't found anything useful. Can someone point me to a good resource on how to set this up?

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

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

发布评论

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

评论(1

没有伤那来痛 2024-12-26 05:05:08

portbase 信息对于此问题也可能有用:

https://blogs.oracle.com/alexismp/entry /flexible_glassfish_domain_creation_using

因此,对于多个域,您可以为每个域设置一个 JMS 端口

portbase info also could be usefull for this questuion:

https://blogs.oracle.com/alexismp/entry/flexible_glassfish_domain_creation_using

so, for several domains you cah set up the portbase with one JMS port per domain

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