Sun GlassFish Enterprise Server v3 Application Deployment Guide

bean-pool

Specifies the pool properties of stateless session beans, entity beans, and message-driven bean.

Superelements

ejb (sun-ejb-jar.xml)

Subelements

The following table describes subelements for the bean-pool element.

Table C–10 bean-pool Subelements

Element 

Required 

Description 

steady-pool-size

zero or one 

Specifies the initial and minimum number of beans maintained in the pool. Default is 32. 

resize-quantity

zero or one 

Specifies the number of beans to be created if the pool is empty (subject to the max-pool-size limit). Values are from 0 to MAX_INTEGER.

max-pool-size

zero or one 

Specifies the maximum number of beans in the pool. Values are from 0 to MAX_INTEGER. Default is to the EJB container value or 60. 

max-wait-time-in-millis

zero or one 

Deprecated. 

pool-idle-timeout-in-seconds

zero or one 

Specifies the maximum time that a bean is allowed to be idle in the pool. After this time, the bean is removed. This is a hint to the server. Default time is 600 seconds (10 minutes). 

Example

<bean-pool>
   <steady-pool-size>10</steady-pool-size>
   <resize-quantity>10</resize-quantity>
   <max-pool-size>100</max-pool-size>
   <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds>
</bean-pool>