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] "Klaus H. Probst" <usenet001@vbbox.com> wrote in message news:<u8CvB6ryEHA.3588@TK2MSFTNGP14.phx.gbl>...
> 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/ >
>
> "almir" <kazazic@gmail.com> wrote in message
> news:b6d4a028.0411141329.151734c9@posting.google.com...
> > 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
> >
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] "almir" <kazazic@gmail.com> wrote in message
news:b6d4a028.0411141329.151734c9@posting.google.com...
> 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
>
> Almir