This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3, System Exception question  RSS feed

 
Camilo Morales
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A System exception stills RollBack the TX even if I catch it with a RunTimeException try/catch block ?

Thanks,
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According EJB2.0 Specification Chapter 18.2.2
If the bean method encounters a RuntimeException or error, it should simply propagate the error from the bean method to the Container (i.e., the bean method does not have to catch the exception).


So according me in such case it is bean provider responsibility to rollback.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!