Wednesday, March 21, 2012 7:00 AM
I've a TransactionScope within the body of a CompensableActivity.
In case of exception I want the TransactionScope to rollback the DB changes and I'd like the CompensationHandler to log the exception.
My CompensationHandler is not executed in case of exception. Why ?
How can I retrieve the exception from within the CompensationHandler ?
- Edited by philippe lombaers Wednesday, March 21, 2012 7:26 AM
Friday, March 23, 2012 3:09 AMModerator
"The difference between exception handling and compensation is that exception handling occurs during the execution of an activity. Compensation occurs after an activity has successfully completed. Exception handling provides an opportunity to clean up after the activity raises the exception, whereas compensation provides a mechanism by which the successfully completed work of a previously completed activity can be undone."
- Marked As Answer by LeoTangModerator Wednesday, March 28, 2012 8:30 AM