System and Method for Heterogeneous Caching
First Claim
1. A method for providing data caching for transactions involving entity beans in an application server, said method comprising the steps of:
- reading a data item instance that is contained in a database and is required by a transaction;
holding the data item instance by an entity bean in a cache; and
associating a time-out value with said entity bean in the cache wherein said time-out value determines how long the entity bean should hold the instance of said data item before updating to a new version of said data item.
1 Assignment
0 Petitions
Accused Products
Abstract
The caching of heterogeneous bean sets has been improved from requiring each bean to have its own cache instance to caching the beans in a single cache. The beans can be identified by generating a unique identifier that is a combination of the bean'"'"'s primary key and a self-reference identifier of the bean manager associated with that bean. The average size of a bean set associated with a bean manager can be specified such that the cache allocates memory for that set based on the average size. A callback interface can also be used to shift knowledge of a bean life cycle back to the bean manager.
54 Citations
17 Claims
-
1. A method for providing data caching for transactions involving entity beans in an application server, said method comprising the steps of:
-
reading a data item instance that is contained in a database and is required by a transaction;
holding the data item instance by an entity bean in a cache; and
associating a time-out value with said entity bean in the cache wherein said time-out value determines how long the entity bean should hold the instance of said data item before updating to a new version of said data item. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16)
-
-
9. A system for providing data caching for transactions involving entity beans, said system comprising:
-
a database containing a plurality of data items accessed by one or more transactions;
a cache that includes a plurality of entity beans, each entity bean storing a copy of a data item for use by said transactions; and
a time-out value associated with each said entity bean wherein said time-out value specifies a period of time that said entity bean should hold the copy of the data item before updating to a new version of said data item.
-
-
17. A computer readable medium having instructions stored thereon which when executed by one or more processors cause a system to perform the steps of:
-
reading a data item instance that is contained in a database and is required by a transaction;
holding the data item instance by an entity bean in a cache; and
associating a time-out value with said entity bean in the cache wherein said time-out value determines how long the entity bean should hold the instance of said data item.
-
Specification