Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0) Part Number B28221-02 |
|
|
View PDF |
You can specify under what conditions OC4J passivates a stateful session bean (see "Using Deployment XML").
For more information, see: the following
Table 12-3 lists the attributes, values, and defaults for configuring passivation criteria in the orion-ejb-jar.xml
file element session-deployment
.
Table 12-3 orion-ejb-jar.xml Element session-deployment Passivation Criteria
Attribute | Values | Default |
---|---|---|
Positive, integer number of seconds before passivation occurs. To disable this criteria, specify a value of |
|
|
memory-threshold |
Percentage of JVM memory that can be consumed before passivation occurs. To disable this criteria, specify a value of never. |
|
max-instances |
Maximum positive integer number of bean instances allowed in memory: either instantiated or pooled. When this value is reached, OC4J attempts to passivate beans using the least recently used (LRU) algorithm. To allow an infinite number of bean instances, the To disable instance pooling, set See "Configuring Bean Instance Pool Size" for more information. |
|
max-instances-threshold |
Percentage of Specify an integer that is translated as a percentage. If you define that the To disable, specify never |
|
passivate-count |
Positive, integer number of beans to be passivated if any of the resource thresholds ( Passivation of beans is performed using the least recently used algorithm. To disable this option, specify a value of |
One-third of |
resource-check-interval |
The frequency, as a positive, integer number of seconds, at which OC4J checks resource thresholds ( To disable this option, specify a value of never. |
|