Method and system for maintaining the integrity of a database providing persistent storage for objects
First Claim
1. A method for updating a database providing persistent storage for a plurality of objects each comprising methods and instance variables, wherein a persistent record of each of the plurality of objects will experience a change in the context of a transaction if the transaction is allowed to commit, the method comprising:
- sending a first prepare message to each of the plurality of objects, the plurality of objects sending their state to the database in response to the first prepare messages;
sending a second prepare message to the database if a prepared indicator was received in response to each of the first prepare messages;
sending a commit message to each of the plurality of objects and to the database if a prepared indicator was received in response to each of the first prepare messages and if a prepared indicator was received in response to the second prepare message.
5 Assignments
0 Petitions
Accused Products
Abstract
One aspect of the invention is a method for updating a database providing persistent storage for a plurality of objects each comprising methods and instance variables, wherein a persistent record of each of the plurality of objects will experience a change in the context of a transaction if the transaction is allowed to commit. The method comprises sending a first prepare message to each of the plurality of objects, the plurality of objects sending their state to the database in response to the first prepare messages. A second prepare message is sent to the database if a prepared indicator was received in response to each of the first prepare messages. A commit message is sent to each of the plurality of objects and to the database if a prepared indicator was received in response to each of the first prepare messages and if a prepared indicator was received in response to the second prepare message.
91 Citations
22 Claims
-
1. A method for updating a database providing persistent storage for a plurality of objects each comprising methods and instance variables, wherein a persistent record of each of the plurality of objects will experience a change in the context of a transaction if the transaction is allowed to commit, the method comprising:
-
sending a first prepare message to each of the plurality of objects, the plurality of objects sending their state to the database in response to the first prepare messages; sending a second prepare message to the database if a prepared indicator was received in response to each of the first prepare messages; sending a commit message to each of the plurality of objects and to the database if a prepared indicator was received in response to each of the first prepare messages and if a prepared indicator was received in response to the second prepare message. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system for maintaining persistence in a distributed object environment comprising a plurality of objects each comprising methods and instance variables, wherein a persistent record of a first number of the plurality of objects will experience a change in the context of a transaction if the transaction is allowed to commit, the system comprising:
a transaction service running on at least one computer and operable to send a first prepare message to each of the plurality of objects, at least one of the plurality of objects sending its state to a first database in response to the prepare message; send a second prepare message to at least the first database if a prepared indicator was received in response to each of the first prepare messages; send a commit message to each of the plurality of objects and to the first database if a prepared indicator was received in response to each of the first prepare messages and if a prepared indicator was received in response to each of the second prepare messages. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
Specification