EJBContainer

Configuration for an EJB modules deployed within it.

Inherits from type ApplicationContainer and adds the following.


 

Attributes Summary

passivationDirectory The directory into which the container will save the persistent state of passivated session beans.
inactivePoolCleanupInterval The interval at which inactive pools will be reduced to their minimum size.
defaultDatasourceJNDIName Specifies the JNDI name of a data source to use if no data source is specified during application deployment.
cacheSettings Each EJB container keeps a cache of bean instances for ready access.

 

Attribute Details


passivationDirectory

The directory into which the container will save the persistent state of passivated session beans. Session beans are passivated when the container needs to reclaim space in the bean cache. At passivation time, the container serializes the bean instance to a file in the passivation directory and discards the instance from the bean cache. If, at a later time, a request arrives for the passivated bean instance, the container retrieves it from the passivation directory, deserializes it, returns it to the cache, and dispatches the request to it. If any step fails (for example, if the bean instance is no longer in the passivation directory), then the method invocation fails.

Data type:   String
Default value:   unspecified



inactivePoolCleanupInterval

The interval at which inactive pools will be reduced to their minimum size. The value must be a positive integer specified in milliseconds.

Data type:   Long
Default value:   30000



defaultDatasourceJNDIName

Specifies the JNDI name of a data source.Specifying a default data source is optional if each CMP entity bean in the container has a data source specified in its config. If a default data source is not specified and a CMP entity bean is installed in the container without specifying a data source for that bean,applications cannot use that CMP entity bean.

Data type:   String
Default value:   unspecified



cacheSettings

Each EJB container keeps a cache of bean instances for ready access. This section allows you to specify the parameters to configure the cache.

Data type:  EJBCache