Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question from Mikalai Guide

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception chapter in Mikalai Zaikin -
http://java.boot.by/bcd-guide/ch12s05.html


Although the Container does not automatically mark for rollback a transaction because of a thrown application exception, the transaction might have been marked for rollback by the enterprise bean instance before it threw the application exception.

Can someone please explain what is the meaning of --
the transaction might have been marked for rollback by the enterprise bean instance

Thanks!

Gemini
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The transaction might have been marked for rollback by the enterprise bean instance using the setRollbackOnly method

Somewhere in the code, the bean might have already called setRollbackOnly.

Regards,
Leena
[ March 15, 2005: Message edited by: Leena Diwan ]
 
Keerthi P
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ March 15, 2005: Message edited by: Keerthi P ]
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to both of you for helping us even after you are done with the exam.

Ok, so it means,

the transaction might have been marked for rollback by the Bean provider by handling the exception before throwing it.

=
the transaction might have been marked for rollback by the enterprise bean instance before it threw the application exception.

I was confused by "enterprise bean instance".

Thanks once again!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic