Configuring the EJB Runtime Properties
When
configuring NAS for the enterprise, the EJB container's declarative
parameters must be set. These parameters determine, for example, when
an EJB is removed after being inactive for a specified number of seconds.
Set these parameters using the editor in the NAS Administrator.
To
access the editor, perform the following steps:
-
On the
NAS Administrator toolbar, click the General button.
-
In the
right pane of the General window, click the EJB tab to open the
EJB container declarative parameters editor.
The editor allows the following values to be set:
session
timeout |
Session
Timeout occurs when an EJB is unaccessed for the specified number
of seconds and is removed. This applies to stateful session EJBs. |
passivation
timeout |
Passivation
Timeout is the time, in seconds, that elapses before the state
of the EJB, which is currently in memory and is written to disk.
This value must be less than session timeout. |
transport
timeout |
Transport
Timeout is the same as session timeout but applies to entity EJBs. |
cache size |
Cache Size
refers to the meta-data cache for EJBs. Value is in number of
EJBs. |
implementation
pool max |
Implementation
Pool Max is the maximum number of EJBs activated for a given home
interface. |
implementation
free pool max |
Implementation
Free Pool Max is the maximum cache size in number of EJBs. |
timer interval |
Timer Interval
is how frequently (in seconds) the EJB pool checks to see if it
should passivate or remove an EJB. |
To launch the
editor, perform the following steps:
-
Click
the Application button on the NAS Administrator toolbar
to open the Application window.
-
From
the tree in the left pane of the window, select the EJB properties
to be edited.
-
In the
right pane of the Application window, click the Edit
Deployment Descriptor button.
|