Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Question from Mikalai Guide

 
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
 
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 ]
 
Ranch Hand
Posts: 211
  • 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!
 
Everybody's invited. Even this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic