Home All Groups Group Topic Archive Search About

[.Net 2.0] How to participate into a transaction ?

Author
25 Jul 2006 3:44 PM
Steve B.
Hi,

I'm building a component that perform some operation and that is working.

This component is runnig into the application app domain by now, but later,
this component will be a distributed component that will perform operations
which represent only a part of a whole process.
Since during this process errors can occurs, I suppose I have to enable the
component to participate into transactions.

What are the requirements of my component to act as a optionnally
transactionned component ?
I use to surround my code with using(TransactionScope ts = new
TransactionScope()){....} when I execute sql request. Will (or how) my
component be using the ambiant transaction ?

I hope someone can put on the way, or give me a sample and/or a pattern to
reach my goal.

Thanks in advance for any help.
Steve

Author
25 Jul 2006 4:19 PM
Laura T
Some pointers:

http://msdn.microsoft.com/netframework/default.aspx?pull=/library/en-us/dndotnet/html/introsystemtransact.asp
http://msdn.microsoft.com/msdnmag/issues/05/02/DataPoints/
http://www.microsoft.com/downloads/details.aspx?familyid=AAC3D722-444C-4E27-8B2E-C6157ED16B15&displaylang=en
http://msdn2.microsoft.com/en-us/library/0abf6ykb.aspx
http://msdn2.microsoft.com/en-us/library/ms229973.aspx

have fun!

Show quote
"Steve B." <steve_beauge@com.msn_swap_msn_and_com> ha scritto nel messaggio
news:%23znfKFAsGHA.4884@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I'm building a component that perform some operation and that is working.
>
> This component is runnig into the application app domain by now, but
> later, this component will be a distributed component that will perform
> operations which represent only a part of a whole process.
> Since during this process errors can occurs, I suppose I have to enable
> the component to participate into transactions.
>
> What are the requirements of my component to act as a optionnally
> transactionned component ?
> I use to surround my code with using(TransactionScope ts = new
> TransactionScope()){....} when I execute sql request. Will (or how) my
> component be using the ambiant transaction ?
>
> I hope someone can put on the way, or give me a sample and/or a pattern to
> reach my goal.
>
> Thanks in advance for any help.
> Steve
>
>

AddThis Social Bookmark Button