摘要 |
A simple, efficient method and system for creating a transactional resource that it is easily verifiable is provided by the present invention. In one aspect, the invention comprises a method and system for implementing, with objects, operations that modify state that must be recovered in the event of a rollback. A preferred design is described, along with details regarding resource management, how operations should be constructed and performed and how the operations should be rolled back. In another aspect, the present invention is directed to a method of and structure for interaction between resource managers and their corresponding resources. If a resource manager does not have sufficient knowledge of the underlying processes inherent in operations on a resource, the resource itself takes on some of the responsibilities. In another aspect, the present invention addresses a structure for implementing such a resource and the creation of a specialized resource manager to integrate with an existing system. These systems and methods have the added advantage of being applicable to all transaction types (short, immediate, or long running transactions) and system sizes (small, embedded systems to large-scale enterprise systems).
|