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

EJB 3, System Exception question

 
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