![]() |
![]() |
The Application Server Options for EJB page of the New / Edit J2EE Session EJB Wizard is application server and state management mode specific. The configuration options change depending on the type of application server you are using and the state set for your EJBs.
These options, along with the application server options for the J2EE connector, are needed by your application server and are included in the packaging of your enterprise application.
![]() |
These are SunOne application server specific options that are set in META-INF\sun-web.xml . Please check your SunOne application server documentation for suggestions and limitations to use when setting these options. |
SunOne Application Server Options for Stateful EJBs
Every stateful EJB that you use keeps a connector allocated (until the EJB is removed). This ensures that the same number of connectors are available. Connector options are set on the next panel of the wizard.
Maximum cache size: The maximum cache size defines the maximum number of beans in the cache. This value should be greater than 1 and the default is 512.
Resize quantity: The resize quantity specifies the number of beans to be created or deleted when the pool or cache is being serviced by the server. Valid values are from 0 to MAX_INTEGER and subject to the maximum size limit. The default is 16.
Allow cache overflow: Choose this option to indicate if the cache size has a hard limit. The default is true; there is no hard limit set. Note the maximum cache size value to understand the cache implementation.
Cache idle timeout (seconds): The cache idle timeout value specifies the maximum time that a stateful session bean is allowed to be idle in the cache. After the this time has expired, the bean is deactivated to backup store and is a hint to the server. The default value is 3600 seconds or 60 minutes.
Removal timeout (seconds): The removal timeout specifies the amount of time a bean can remain idle in the container before it is removed. A value of 0 specifies that the container does not remove inactive beans automatically. If the removal timeout is less than or equal to the cache idle timeout, beans are removed immediately without being deactivated. The default value is 3600 seconds or 60 minutes.
The J2EE connector that is bundled in the enterprise application when the session EJB is created cannot be serialized, therefore deactivation is not supported. Keep the values for Cache Idle Timeout and Removal Timeout the same. Victim selection policy: The victim selection policy specifies the algorithm to use to specify how stateful session beans are selected for deactivation. Possible values are First In, First Out (FIFO), Least Recently Used (LRU), Not Recently Used (NRU). The default value is NRU, which is actually pseudo-random selection policy.
SunOne Application Server Options for Stateless EJBs
Each stateless EJB that you use only allocates a connector while the task is being executed. Thus, depending on how long an execution takes, you may actually require fewer connectors.
Steady pool size: Steady pool size specifies the initial and minimum number of beans that must be maintained in the pool. Valid values are from 0 to MAX-INTEGER. The default value is 0.
Resize quantity: Resize quantity specifies the number of beans to be created or deleted when the pool or cache is being serviced by the server. Valid values are from 0 to MAX_INTEGER and subject to the maximum size limit. The default value is 16.
Maximum pool size: Specifies the maximum pool size. Valid values are from 0 to MAX_INTEGER. A value of 0 means the pool is unbounded. The default value is 512.
Pool idle timeout (seconds): Specifies the maximum time, in seconds, that a bean can remain idle in the pool. When this timeout expires, the bean becomes a candidate for deactivation or deletion. This is a hint to the server. A value of 0 specifies that idle beans can remain in the pool indefinitely. Default value is 600.
The task file and application server names are the names selected on the Task File and Application Server page of the J2EE Session EJB Wizard.
![]() |
|
![]() |
Packaging J2EE Session EJBs |
![]() |
Configuring J2EE Session EJBs, Overview |
![]() |
MCS for Screens Help Links |
![]() |