ObjectContext object of ASP is related to either commit or abort a transaction
managed by Component Services during processing scripts in an ASP page.
Methods
Method
Description
SetAbort
Set
the flag of a transaction during processing scripts in an ASP page to about for
the script in a transaction has not completed. Therefore the Component Services
should not update those related resources even other participating components in
the transaction has completed.
SetComplete
Set
the flag of a transaction during processing scripts in an ASP page to complete
for the script in a transaction has completed. Therefore the Component Services
can check with other participating components in the transaction whether these
participating components has completed or not. If all participating components
in the transaction has completed and call SetComplete then the related resources
can be updated.
Events
Event
Description
OnTransactionAbort
Event occurs
when the transaction has been aborted for whatever reason or processing error.
An optional corresponding event subroutine with the reserved name
OnTransactionAbout can be used to handle the case of about event occur.
OnTransactionCommit
Event occurs
when the transaction has been committed or completed without any processing
error. An optional corresponding event subroutine with the reserved name
OnTransactionCommit can be used to handle the case of completed or committed
event occur.
Remarks
The ASP file must contain the @TRANSACTION directive, in order to declare the
page runs in a transaction.
In a transaction, the processing of the page will be finished with a declaration
of the transaction is either succeed with all other participating components in
the transaction has completed or fail when one of the participating components
in the transaction has failed or not completed.
The properties and events of ASP ObjectContext object can be grouped into