在Jboss中创建了多少个消息驱动Bean? [英] how many Message Driven Beans are created in Jboss?

查看:201
本文介绍了在Jboss中创建了多少个消息驱动Bean?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JBoss:6或7

问题1:

由Jboss 创建消息驱动Bean的几个实例来处理消息?

How many instances of Message Driven Bean are created by Jboss to handle messages?

Question2:

如何配置由JBoss创建的消息驱动Bean数量?

How to configure number of Message Driven Beans created by JBoss?

推荐答案

根据这个JBoss EAP 5(JBoss AS 6)文档:

According to this JBoss EAP 5 (JBoss AS 6) documentation:

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

您需要注意两个概念:


  1. 池大小:此池名为StrictMaxPool,默认值为15.必须在JBoss配置文件中配置文件(读取链接)

  2. 会话大小:这是根据标准配置的参数,具有以下注释:

  1. Pool Size: This pool is named StrictMaxPool and the default values is 15. It must be configurated on JBoss config files (read link)
  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")


哪里minSession而maxSessions是由JBoss创建的实例数。 但是如果将StrictMaxPool设置为15,那么您不能创建超过15个实例,尽管您将maxSessions配置为50

Where minSession and maxSessions are the number of instances created by JBoss. But if the StrictMaxPool is set to 15 then you cannot create more than 15 instances although you configure maxSessions to 50

对于JBoss EAP 6(JBoss AS 7),池被命名为mdb-strict-max-pool,其默认的最大池大小为20。

For JBoss EAP 6 (JBoss AS 7) the pool is named mdb-strict-max-pool and their default max pool size is 20.

这篇关于在Jboss中创建了多少个消息驱动Bean?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆