System and method for heterogeneous caching
First Claim
Patent Images
1. A method for providing heterogeneous data caching for transactions involving entity beans of different sizes in an application server, said method comprising the steps of:
- reading a plurality of data item instances that are contained in a database and are required by a transaction;
holding in a single system cache the data item instances of different sizes by entity beans of corresponding different sizes, read-only type, write-only type, read-and-write type, and combination of types thereof;
associating a plurality of bean managers with the single system cache, each entity bean in the cache associated with one of said bean managers, wherein each said bean manager manages the life cycle tasks including creating, removing, loading, and storing of the entity beans that are associated with the bean manager;
allocating memory dynamically based on the demand of each entity bean;
associating a time-out value with each said entity bean in the cache wherein said time-out value determines how long the said entity bean should hold an instance of a data item before updating to a new version of said data item; and
associating an entity bean identifier with each said entity bean in the cache wherein said entity bean identifier comprising an entity bean primary key and an additional object or identifier, and wherein said entity bean identifier associated with each entity bean is unique to its associated entity bean in the cache;
wherein said heterogeneous data caching causes storage of information in memory and enables an intelligent management of memory.
1 Assignment
0 Petitions
Accused Products
Abstract
The caching of heterogeneous sets of bean is accomplished using 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.
-
Citations
16 Claims
-
1. A method for providing heterogeneous data caching for transactions involving entity beans of different sizes in an application server, said method comprising the steps of:
-
reading a plurality of data item instances that are contained in a database and are required by a transaction; holding in a single system cache the data item instances of different sizes by entity beans of corresponding different sizes, read-only type, write-only type, read-and-write type, and combination of types thereof; associating a plurality of bean managers with the single system cache, each entity bean in the cache associated with one of said bean managers, wherein each said bean manager manages the life cycle tasks including creating, removing, loading, and storing of the entity beans that are associated with the bean manager; allocating memory dynamically based on the demand of each entity bean; associating a time-out value with each said entity bean in the cache wherein said time-out value determines how long the said entity bean should hold an instance of a data item before updating to a new version of said data item; and associating an entity bean identifier with each said entity bean in the cache wherein said entity bean identifier comprising an entity bean primary key and an additional object or identifier, and wherein said entity bean identifier associated with each entity bean is unique to its associated entity bean in the cache; wherein said heterogeneous data caching causes storage of information in memory and enables an intelligent management of memory. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer implemented system for providing heterogeneous data caching for transactions involving entity beans of different sizes, said system comprising:
-
a database containing a plurality of data items accessed by one or more transactions; a single system cache that includes a plurality of entity beans of different sizes, read-only type, write-only type, read-and-write type, and combination of types thereof wherein each said entity bean stores a copy of a data item for use by said transactions and associates with one of a plurality of bean manager, and wherein each said bean manager manages the life cycle tasks including creating, removing, loading, and storing of the entity beans that are associated with the bean manager; a common resource algorithm associated with said cache that dynamically allocate memory based on the demand of each said entity bean; 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; and an entity bean identifier associated with each said entity bean within said cache wherein said entity bean identifier comprising an entity bean primary key and an additional object or identifier, and wherein said entity bean identifier associated with each entity bean is unique to its associated entity bean within said cache; wherein said heterogeneous data caching causes storage of information in memory and enables an intelligent management of memory. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification