JBoss 消息传递和线程优先级

发布于 2024-09-29 13:51:54 字数 115 浏览 0 评论 0原文

我将 JBoss 5.1.0 GA 与 JMS 一起使用。

我有两个消息驱动的 Bean。

有人可以向我解释一下线程模型吗?例如,每个MDB是否都有单独的线程池?他们共享一个全球池吗?

I'm using JBoss 5.1.0 GA together with JMS.

I have two message-driven beans.

Could someone explain the threading model to me? For example, does each MDB have a separate thread pool? Do they share a global pool?

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

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

发布评论

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

评论(2

终难愈 2024-10-06 13:51:54

宾果游戏。这就是我一直在寻找的人。我一直在尝试不同的选项,无论配置如何,线程数量仍然在增长,如下所示。Jboss 的文档确实很差。

@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "xx")

Bingo. That's the one I have been looking for. I have been trying different options and the number of threads still grew regardless of config like below.Jboss really has poor documentation.

@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "xx")
↘人皮目录ツ 2024-10-06 13:51:54

回答我自己的问题。所有消息驱动 Bean 共享一个公共线程池,可以在部署目录的 jca-jboss-beans.xml 中配置该线程池。

To answer my own question. All message-driven beans share a common thread pool that can be configured in jca-jboss-beans.xml in the deploy directory.

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