Disabling and enabling transaction committal in transactional application components
First Claim
1. In a distributed computer network, a method of coordinating work of a plurality of software components as an atomic transaction, comprising:
- tracking a state of work of each component in a transaction, where the state of work may be reversibly set to a disable commit state;
on receiving a request to commit the transaction, determining whether a state of work of any component in the transaction is the disable commit state; and
disallowing committal of all work of the components in the transaction if a state of work of any component in the transaction is the disable commit state.
4 Assignments
0 Petitions
Accused Products
Abstract
A run-time environment implemented as system services and component integration interfaces provides a capability for components of a component-based server application to reversibly disable committal of a transaction in which the component participates. On return from a call to the component which leaves the component'"'"'s transactional work in an invalid state, the component can disable commit of the transaction so as to avoid premature committal of the component'"'"'s transactional work. On return from a call to the component which renders the component'"'"'s transactional work in a valid state, the component re-enables commit of the transaction. If committal of the transaction is initiated when any component in the transaction disables commit, the transaction is aborted.
139 Citations
11 Claims
-
1. In a distributed computer network, a method of coordinating work of a plurality of software components as an atomic transaction, comprising:
-
tracking a state of work of each component in a transaction, where the state of work may be reversibly set to a disable commit state; on receiving a request to commit the transaction, determining whether a state of work of any component in the transaction is the disable commit state; and disallowing committal of all work of the components in the transaction if a state of work of any component in the transaction is the disable commit state. - View Dependent Claims (2, 3, 4)
-
-
5. An execution environment of component-based server applications for avoiding premature committal of work by server application components in a transaction, comprising:
-
a transaction manager for selectively committing or aborting work of a plurality of server application components in a transaction as an atomic unit; and an interface for calling by the server application components, the interface having an abort function for causing the transaction manager to abort the transaction, a disable commit function for temporarily and reversibly disabling commit of the transaction by the transaction manager, and an enable commit for reversing the disabling of commit of the transaction; whereby one of the server application components can prevent premature committal of as yet incomplete work in the transaction by calling the disable commit function. - View Dependent Claims (6, 7)
-
-
8. An execution environment of component-based server applications for avoiding premature committal of work by server application components in a transaction, comprising:
-
a component context associated with each component for recording a value indicating a state of work of the associated component in the transaction; an interface having a disable commit function for calling by a component to set the value in its associated component context to indicate a disable commit state, and having an enable commit function for calling by the component to set the value in its associated component context to indicate an enable commit state; and a transaction manager operative responsive to a commit signal to determine whether a state of work of any component is the disable commit state, and to disallow committal of the transaction if a state of work of any component in the transaction is the disable commit state. - View Dependent Claims (9)
-
-
10. A computer readable storage medium having computer executable instructions stored thereon for avoiding premature committal of transactional work of a component-based server application, the instructions comprising:
-
code for reversibly disabling committal of a transaction on return from a first call to a component of the server application in which transactional work of the component is left in an invalid state; code for again enabling committal of the transaction on return from a second call to the component in which the component'"'"'s transactional work is left in a valid state; and code for suppressing committal of the transaction if any component in the transaction currently disables committal of the transaction. - View Dependent Claims (11)
-
Specification