简体   繁体   English

在Jboss中创建了多少个Message Driven Beans?

[英]how many Message Driven Beans are created in Jboss?

JBoss: 6 or 7 JBoss:6或7

Question1: 问题1:

How many instances of Message Driven Bean are created by Jboss to handle messages? Jboss创建了多少个Message Driven Bean实例来处理消息?

Question2: 问题2:

How to configure number of Message Driven Beans created by JBoss ? 如何配置JBoss创建的消息驱动Bean的数量?

According to this JBoss EAP 5 (JBoss AS 6) documentation: 根据这个JBoss EAP 5(JBoss AS 6)文档:

https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html/Performance_Tuning_Guide/sect-Performance_Tuning_Guide-Message_Driven_Beans.html https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/5/html/Performance_Tuning_Guide/sect-Performance_Tuning_Guide-Message_Driven_Beans.html

You need to take care of two concepts 你需要处理两个概念

  1. Pool Size: This pool is named StrictMaxPool and the default values is 15. It must be configurated on JBoss config files (read link) 池大小:此池名为StrictMaxPool,默认值为15.必须在JBoss配置文件上配置(读取链接)
  2. Session Size: This is the parameter configured according to the standard with the following annotations: 会话大小:这是根据标准配置的参数,带有以下注释:

     @ActivationConfigProperty(propertyName="minSessions" , propertyValue="25") @ActivationConfigProperty(propertyName="maxSessions" , propertyValue="50") 

Where minSession and maxSessions are the number of instances created by JBoss. 其中minSession和maxSessions是JBoss创建的实例数。 But if the StrictMaxPool is set to 15 then you cannot create more than 15 instances although you configure maxSessions to 50 但是,如果StrictMaxPool设置为15,那么虽然您将maxSessions配置为50,但您无法创建超过15个实例

For JBoss EAP 6 (JBoss AS 7) the pool is named mdb-strict-max-pool and their default max pool size is 20. 对于JBoss EAP 6(JBoss AS 7),该池名为mdb-strict-max-pool ,其默认最大池大小为20。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JBoss消息驱动的bean,未调用onMessage - JBoss message driven beans, onMessage not called 如何使用管理控制台和 Jboss 的 CLI 工具为会话和消息驱动的 Bean 配置 Bean 池 - How to Configure Bean Pools for Session and Message-Driven Beans using the Management Console and the CLI tool for Jboss (Jboss 5)在War文件中未检测/部署带注释的消息驱动的Bean - (Jboss 5) Annotated Message Driven beans not detected/deployed in War file 如何在JBOSS 7 EJB 3中指定消息驱动Bean依赖关系? - How to specify Message Driven Bean dependencies in JBOSS 7 EJB 3? 将消息驱动的Bean部署到JBoss服务器 - Deploying a Message Driven Bean to JBoss Server 如何使用ActiveMQ资源适配器修改JBoss EAP 6.4消息驱动Bean的事务超时值? - How to modify the transaction timeout value for a JBoss EAP 6.4 message driven bean using ActiveMQ resource adapter? 如何将JBoss4消息驱动Bean连接到远程服务器上的主题? - How do I connect a JBoss4 Message Driven Bean to a topic on a remote server? jBoss部署消息驱动的bean规范违规 - jBoss deployment of message-driven bean spec violation 如何停止将消息传递到消息驱动Bean? - How to stop message delivery to a Message Driven Bean? 如何配置消息驱动Bean的池大小 - How to configure pool size of Message Driven Bean
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM