Edit EJB Pool Settings

The EJB Container pools anonymous instances (Message-driven Beans, Stateful Session Beans and Entity Beans in the pooled state), in order to reduce the overhead of object creation and destruction. Every Message-driven Bean, Stateful Session Bean and Entity Bean class in every enabled application has its own pool. This page allows you to configure the container-wide defaults for pooled EJBs. The pooling configuration for a particular EJB can be specified in the EJB module deployment descriptor and will override these defaults.

The instance pool works as follows:

On startup, the pool will be populated with steady pool size instances. As instances are requested they are taken out of the pool, used and returned back to the pool. If a request is made on an empty pool then a new instance will be created. If an instance attempts to return to a full pool, the instance will simply be destroyed. The container will attempt to maintain the pool size at 'steady pool size' by removing idle entries or adding new ones. The pool will shrink and grow by the value specified for the 'pool resize quantity' field.

The following table describes the fields and buttons on the screen. The left column lists the fields and buttons; the right column describes the functionality.

Field or Button
Description

Steady Pool Size

The minimum and initial size of the pool.

Max Pool Size

The maximum size a pool can grow to. A value of 0 means the pool will be unbounded.

Pool Resize Quantity

The number of pool entries created or destroyed when the pool size is increased or decreased.

Idle Timeout (secs)

The number of seconds a pool entry can be idle before becoming a candidate for removal.

Save

Saves your edit.

Reset

Cancels your changes, and resets the page to default values.

See also

Edit EJB Cache Settings


Legal Notices