Page 1 of 1

About Question com.enthuware.ets.scbcd.v5.2.133 :

Posted: Sun Mar 03, 2013 9:03 am
by OAS
I think this part of your explanation is not correct :

"A checked application exception never automatically rollbacks a transaction (i.e. the developer must call setRollbackOnly() explicitly in code to rollback the transaction)."

=> a checked application exception can also automatically rollback a transaction if it is marked with rollback=true ( i.e. @ApplicationException(rollback=true) ), doesn't it ?

Thanks and regards,

Olivier

Re: About Question com.enthuware.ets.scbcd.v5.2.133 :

Posted: Sun Mar 03, 2013 10:00 am
by admin
Yes, you are right, it is an exception to the general rule and that is mentioned in the next line of the same explanation itself.

Re: About Question com.enthuware.ets.scbcd.v5.2.133 :

Posted: Sun Mar 03, 2013 12:44 pm
by OAS
Thanks for the confirmation.

However, (sorry to insist) it is not mentioned in the next line of the explanation :

This line is "An unchecked application exception can automatically set a transaction for rollback IF it is marked with rollback=true ( i.e. @ApplicationException(rollback=true) )."

But, as we just saw, both checked and unchecked application exceptions can automatically set a transaction for rollback if it is marked with rollback=true ( i.e. @ApplicationException(rollback=true) ).

Thanks and regards,

Olivier

Re: About Question com.enthuware.ets.scbcd.v5.2.133 :

Posted: Sun Mar 03, 2013 3:14 pm
by admin
Very sorry, I was too quick to respond. You are right. It has now been updated.

thank you for your feedback!