BEA WebLogic Server™ 8.1 Unleashed
by Mark Artiges, Gupreet Singh Bhasin, Bernard Ciconte, Malcolm Garland, Saranathan Govindarajan, James Huang, Subramanian Kovilmadam, Kunal Mittal, Paul J. Perrone, Tom Schwenk, Steve Steffen
Caching in Entity Beans
Another aspect of caching is to cache the persistent data between transactions. Caching can be enabled by setting the cache-between-transactions element in the weblogic-ejb-jar.xml to either true or false to enable or disable long-term caching of data, respectively. This feature is available if the concurrency strategy is set to exclusive, readonly, or optimistic.
Caching Between Transactions with Exclusive Concurrency— This feature is available only when running on a single server. It enables caching when the EJB container has exclusive update access to the data store.
Caching Between Transactions with ReadOnly Concurrency— The EJB container always performs caching of data between transactions when using readonly concurrency. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access