有没有办法在JBoss 4.2.0中预加载EJB实例(无状态)?我知道没有任何配置选项,但我可以编写自己的MBean或其他东西吗?
-Dave
答案 0 :(得分:0)
根据这个article
,这可能不是必要的$JBOSS_HOME/server/default/conf/standardjboss.xml
中的你找到了
<container-pool-conf>
<MaximumSize>100</MaximumSize>
</container-pool-conf>
对于容器配置Clustered Stateless SessionBean
和
Standard Stateless SessionBean
查看DTD会将MinimumSize显示为容器配置中的可选元素,以便进行实验,您可以设置MinimumSize并检查某些服务器是否对汽车进行编码。
<!--
The container-pool-conf element holds configuration data for the
instance pool.
jboss does not read directly the subtree for this element: instead,
it is passed to the instance pool instance (if it implements
org.jboss.metadata.XmlLoadable) for it to load its parameters.
The default instance pools, EntityInstancePool and
StatelessSessionInstancePool, both accept the following configuration.
Used in: container-configuration
-->
<!ELEMENT container-pool-conf ((MinimumSize?, MaximumSize?,
strictMaximumSize?, strictTimeout?) | Synchronized)>