Individual EJB pool and cache settings in the sun-ejb-jar.xml deployment descriptor override those of the EJB container. The following table lists the cache and pool settings for each type of EJB component.
Table 3–2 EJB Cache and Pool Settings
|
Cache Settings |
Pool Settings |
||||||||
---|---|---|---|---|---|---|---|---|---|---|
Type of Bean |
cache-resize-quantity |
max- cache-size |
cache-idle-timeout-in-seconds |
removal- timeout- in- seconds |
victim-selection- policy |
refresh-period-in-seconds |
steady-pool-size |
pool-resize-quantity |
max-pool-size |
pool-idle-timeout-in- seconds |
Stateful Session |
X |
X |
X |
X |
X | |||||
Stateless Session |
X |
X |
X |
X |
||||||
Entity |
X |
X |
X |
X |
X |
X |
X |
X |
X |
|
Entity Read-only |
X |
X |
X |
X |
X |
X |
X |
X |
X |
X |
Message Driven Bean |
X |
X |
X |