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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
OAS

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

Post 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

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

OAS

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

Post 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

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Very sorry, I was too quick to respond. You are right. It has now been updated.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests