Java Reference
In-Depth Information
um number of sessions expected to be active simultaneously in an application. Otherwise,
the sessions that have been least recently used will be passivated. Again, accomplishing this
is different in different application servers. GlassFish sets a default value for the cache size
of 512, and the value can be overridden globally in the domain configuration, or on a per-
EJB basis in the sun-ejb-jar.xml file.
1. EJB caches are used only for stateful session beans while they are associated with
an HTTP session.
2. EJB caches should be tuned large enough to prevent passivation.
Search WWH ::

Custom Search