Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does the container call setRollbackOnly() method?

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the container call setRollbackOnly() method to mark for Rollback when the container receive an system Exception, and it is in a client initiated transaction?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setRollbackOnly() is for the the bean provider to use. When a transaction needs to be rolled back, the Container will typically instruct the transaction manager to mark the transaction for rollback.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic