[英]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 你需要处理两个概念
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.