Groups | Blog | Home
all groups > dotnet component services > november 2004 >

dotnet component services : Developing my own Resource manager for DTC


kazazic NO[at]SPAM gmail.com
11/14/2004 1:29:24 PM
Hi ,

Is it possible to write Resource manager (not serviced component)
which participates in Distributed transactions in .net , and if not
where can I find information how to implement it with c++. I think I
should implement something like ITransaction in my class and implement
Commit() and rollback() calls and register in DTC so it can call my
methods.

Thanks

Klaus H. Probst
11/14/2004 7:57:39 PM
You're thinking about a "resource dispenser". It's not a simple task, but
Google for that and you'll probably find a few samples.

I believe you can even write those in C# now, but I may be wrong about that.


--
Klaus H. Probst, MVP
http://www.vbbox.com/


[quoted text, click to view]

kazazic NO[at]SPAM gmail.com
11/15/2004 5:00:57 PM
thank you Klaus but unfortunatly no, :
"Unlike a resource manager that manages the durable state of a
resource, a resource dispenser manages the non-durable state of the
resource, such as the number of connections to a resource"

and I need durable state so that i can say to my storage to commit or
rollback
so I need Resource Manager but thanks

almir


[quoted text, click to view]
Florin Lazar [MSFT]
11/15/2004 11:10:12 PM
Hi Almir,

For information on how to write an DTC RM in C++ you can start with
http://msdn.microsoft.com/library/?url=/library/en-us/cossdk/htm/dtc_toplevel_6vjm.asp?frame=true

It might also be useful to read
http://blogs.msdn.com/florinlazar/archive/2004/03/04/84199.aspx and
http://blogs.msdn.com/florinlazar/archive/2004/10/02/236965.aspx

In Whidbey, you will be able to do this in managed code using
System.Transactions.

Regards,
--
Florin Lazar - Microsoft - [ http://blogs.msdn.com/florinlazar ]
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button