Regarding MS DTC Sample Application

hi..
If any MS- DTC sample application is available.
Want to know how different modules (MS DTC,
Transaction Manager and Resource manager etc) work
together and what protocols are being used. Really appreciate
if someone help me to get an application like client/server
Thanks in advance
Regards
Umer
[341 byte] By [UmerKhan] at [2008-1-10]
# 1

Hi UmerKhan,

DTC is explained at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/8c08ffc0-5695-4b1b-a320-eaf5731524d2.asp I recommend reading the DTC Developer Guide.

Also, if you are using managed code I recommend reading our System.Transactions docs at http://msdn2.microsoft.com/en-us/library/w97s6fw4(en-US,VS.80).aspx

Hope this helps.

FlorinLazar-MSFT at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Transactions Programming...
# 2

Umer,

Rather than provide a sample application, can I suggest a coding exercise that will teach you the same concepts you're hoping to learn?

Florin was spot on with his suggestion to read the DTC Developer guide. It is the best description of the ins and outs of our product. That being said, it's big, and perhaps a bit overkill for just getting your feet wet. IMHO, the most useful chapter of the manual for getting started is the one titled "Implementing an OLE Transactions–Compliant Resource Manager".

So here's my challenge to you--using the chapter listed above, create a program that creates a DTC (OleTx) transaction, enlists on that transaction and commits it. The chapter listed above should hold your hand through most of the process. If (when) you need specific help while you're coding, please keep posting to this thread, and I'll keep my eye on it. Once you done this for a local program, then we can jump to something distributed.

Incidentally, this is how I first learned how to use DTC (when Florin assigned this same task to me!)

RicLewis at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Transactions Programming...

Software Development for Windows Vista

Site Classified