Compensation Question
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 > Compensation Question




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

    Compensation Question  
Rob


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


 
01-24-06 07:48 AM

Hi

I am having trouble working out how compensations work on atomic transaction
s.
I have two atomic transactions both calling sql sps each with compensation
blocks.

The send ports used to call sql have delivery notification enabled.  If the
second transaction fails (violation of primary key) its compensation handler
is invoked (as well as the first transactions handler.

I thought that the compensation block should only run if a transaction is
successful?
So it is failing an insert and then deleting a record through the
compensation code.

Can someone please help?





[ Post a follow-up to this message ]



    RE: Compensation Question  
Ramprasad


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


 
01-25-06 01:32 PM

Compensation block will compensate for anything that goes wrong in an
transaction be it atomic or Long running.

"Rob" wrote:

> Hi
>
> I am having trouble working out how compensations work on atomic transacti
ons.
> I have two atomic transactions both calling sql sps each with compensation
> blocks.
>
> The send ports used to call sql have delivery notification enabled.  If th
e
> second transaction fails (violation of primary key) its compensation handl
er
> is invoked (as well as the first transactions handler.
>
> I thought that the compensation block should only run if a transaction is
> successful?
> So it is failing an insert and then deleting a record through the
> compensation code.
>
> Can someone please help?





[ Post a follow-up to this message ]



    RE: Compensation Question  
Rob


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


 
01-28-06 02:28 AM

No this is not the case.  When a scope is marked as atomic, if the send port
fails (and has delivery notification) then the compensation handler is
invoked.

However if the scope is changed to long running then the compensation
handler is not invoked.

Why is this?  Can someone please explain the different behaviour?

Thanks,

Rob

"Ramprasad" wrote:
[vbcol=seagreen]
> Compensation block will compensate for anything that goes wrong in an
> transaction be it atomic or Long running.
>
> "Rob" wrote:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:45 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