Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 JBoss 5.1.0 GA 与 JMS 一起使用。
我有两个消息驱动的 bean。
有人可以向我解释线程模型吗?例如,每个 MDB 是否有单独的线程池?他们共享一个全球池吗?
回答我自己的问题。所有消息驱动的 bean 共享一个公共线程池,可以在部署目录的 jca-jboss-beans.xml 中配置该线程池。
答对了。那就是我一直在寻找的那个。我一直在尝试不同的选项,无论像下面这样的配置如何,线程的数量仍然在增长。Jboss 的文档确实很差。
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "xx")