Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transaction handling multi-tier application

Is there a possibility having transactions across multiple systems?

For exeample:

layer 1 - exposes web services (Deployed to weblogic) layer 2 - .NET front end (Deployed to IIS)

Can we have transaction commit or rollback for multiple web service calls initiated from .NET?

If so, can someone point me any resource or document? And is there any special requirement for each of the layer comply to participate in transactions?

like image 444
priceline Avatar asked Aug 21 '11 18:08

priceline


1 Answers

Yes, it is possible. WCF allows for the consumption of web services that utilize the WS-Atomic Transaction standard, assuming you have System.Transactions.TransactionScope available in your .NET client (Silverlight, for example, does not have this).

There is an excellent example on CodeProject that shows both how to produce and consume transaction web services in .NET using TransactionScope.

like image 175
casperOne Avatar answered Sep 20 '22 11:09

casperOne