Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transaction in MTS

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
I have one basic doubt about MTS. MTS aborts the transaction if one of the transaction fails. I'm trying to understand this logic. Consider I have 2 com objects com1.dll and com2.dll. My ASP page calls some method in com1.dll and then calls some method in com2.dll. I was wondering whether MTS aborts method in com1.dll if method in com2.dll fails. I really appreciate some response.

Thanks
 
Yes, if the method in object 2 calls the SetAbort method on the ObjectContext object, the entire transaction is blown away.

When several objects participate in a transaction, any one of them can vote to abort the transaction. Only if they all vote to commit (call SetComplete) will the transaction go through.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top