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
About Question com.enthuware.ets.scbcd.v5.2.133 :
Moderators: Site Manager, fjwalraven
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.133 :
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 :
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
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
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scbcd.v5.2.133 :
Very sorry, I was too quick to respond. You are right. It has now been updated.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 16 guests