• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question from Mikalai Guide

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic