Custom Compensation isn't invoked!
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 Orchestration > Custom Compensation isn't invoked!




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

    Custom Compensation isn't invoked!  
RKrishna


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


 
03-18-05 01:46 AM

I have a scope which has a custom compensation. My scope has a timeout value
and after the timeout the custom compensation should be called but it never
does.

Transaction is 'long running'.

Is this a bug as I have seen this issue mentioned somewhere else. Thanks.





[ Post a follow-up to this message ]



    Re: Custom Compensation isn't invoked!  
Jon Flanders[DevelopMentor]


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


 
03-18-05 01:46 AM

1) Compensations are only called when the transaction succeeeds - but the
outer scope thinks it should roll back.  So you are wrong to think that the
compensation will be called when the timeout happens.  In fact  - if the
transaction fails - the compensation will *never* be called.
2) Custom compensations aren't called automatically. In order for a scope's
compensation to be called, an outer scope has to have its compensation
called (for default compensations) or the outer scope must decide something
is wrong - throw an exception and call the inner scope's compensation block
from inside of an exception.



--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"RKrishna" <RKrishna@discussions.microsoft.com> wrote in message
news:8AB51C89-C795-426C-97D0-32B8FB834684@microsoft.com...
>I have a scope which has a custom compensation. My scope has a timeout
>value
> and after the timeout the custom compensation should be called but it
> never
> does.
>
> Transaction is 'long running'.
>
> Is this a bug as I have seen this issue mentioned somewhere else. Thanks.







[ Post a follow-up to this message ]



    Re: Custom Compensation isn't invoked!  
RKrishna


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


 
03-18-05 01:46 AM

Thank you very much. Of course it makes sense now 
I got around the problem by using a Listen shape instead. That way I am able
to handle the timeout as well as Receive a file, whichever comes first.

"Jon Flanders[DevelopMentor]" wrote:

>  1) Compensations are only called when the transaction succeeeds - but the
> outer scope thinks it should roll back.  So you are wrong to think that th
e
> compensation will be called when the timeout happens.  In fact  - if the
> transaction fails - the compensation will *never* be called.
> 2) Custom compensations aren't called automatically. In order for a scope'
s
> compensation to be called, an outer scope has to have its compensation
> called (for default compensations) or the outer scope must decide somethin
g
> is wrong - throw an exception and call the inner scope's compensation bloc
k
> from inside of an exception.
>
>
>
> --
> Jon Flanders [DevelopMentor]
> http://staff.develop.com/jfland/
> http://www.develop.com/courses/biztalk
> "RKrishna" <RKrishna@discussions.microsoft.com> wrote in message
> news:8AB51C89-C795-426C-97D0-32B8FB834684@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:58 AM.      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