Globally configures the passivation timeout for EJB stateful session beans in the module. The value is the allowed idle time in seconds. If an instance is idle for more than this amount of time, EAServer removes the instance from memory by serializing it to persistent storage. If the client calls a method on a passivated instance, EAServer deserializes the instance back into memory to service the invocation. You can also set the ejb.removeTimeout property to specify a timeout for complete removal of idle instances.
To override this setting for individual components, create a <setProperties> command in your user configuration that runs the <ejbPassivate> subcommand and sets the timeout attribute. For example:
<target name="configure-user"> <setProperties component="ejb.components.myjar.MyCompRemote"> <ejbPassivate timeout="100"/> </setProperties> </target>
EAServer passivates instances by storing in the ejb_session database
table using the session.db
data
source. In the default, as-installed configuration, the session.db
data
source is an alias for the default
data
source, which connects to the preconfigured default database server.