Someone must have done this before using Transactions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Someone must have done this before using Transactions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Someone must have done this before using Transactions  
ee@ee.demon.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-29-06 06:19 AM

Hi Biztalkers,

In this scenario I want to make two database changes and rollback them back
if something goes wrong. I do not wand to write compensations for the
actions I want to use ACID scope for the updates. This is simple using
something like DTS, i.e. it will automatically rollback on failure.

I want to be able to do then following:

Orchestration:

Receive PO
|
Expression Update SQL Via .Net Method call
|
Expression Update SQL Via another .Net Method call
|
Stop


I have a simple scenario where I want to call two separate .Net functions,
each of which update a row in a table.

Is there an example where two separate DB records are updated from within
two separate .Net component call from an orchestration with acid scope that
are then rolled back?

I get people responding saying it should be possible but:
Someone MUST have solved a similar scenario.
There must be an example of a solution to this type of scenario

Thanks
Jim





[ Post a follow-up to this message ]



    Re: Someone must have done this before using Transactions  
Tomas Restrepo \(MVP\)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-29-06 12:17 PM

> In this scenario I want to make two database changes and rollback them
> back
> if something goes wrong. I do not wand to write compensations for the
> actions I want to use ACID scope for the updates. This is simple using
> something like DTS, i.e. it will automatically rollback on failure.
>
> I want to be able to do then following:
>
> Orchestration:
>
> Receive PO
>         |
> Expression Update SQL Via .Net Method call
>          |
> Expression Update SQL Via another .Net Method call
>         |
>    Stop
>
>
> I have a simple scenario where I want to call two separate .Net functions,
> each of which update a row in a table.
>
> Is there an example where two separate DB records are updated from within
> two separate .Net component call from an orchestration with acid scope
> that
> are then rolled back?

Just make your .NET components ServicedComponents in COM+ that support
transactions (i.e. mark them with the transaction attribute [Transaction
]
and make sure you use the correct APIs or attributes to control transaction
outcome in their methods).
Once you do that, BizTalk will automatically create a DTC transaction for
your Atomic scope and extend that to the .NET components (and thus to your
database actions).

There are plenty of examples out there that show how to build transactional
.NET ServicedComponents, any should do the trick.

--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/







[ Post a follow-up to this message ]



    Re: Someone must have done this before using Transactions  
ee@ee.demon.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-29-06 06:14 PM


On 29-Apr-2006, "Tomas Restrepo \(MVP\)" <tomasr@mvps.org> wrote:

> Tomas

Thanks Tomas.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register