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

Whether normal methods involved in a User Transaction

 
gutta rahul
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Iam new to transactions. If I begin a UserTransaction and begin the transaction using the begin() method given, will the subsequent calls to other methods after begin() and commit() will be tied implicitly to the transaction context? Thanks in advance.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's right, you are defining the boundaries of the transaction between the begin and commit/rollback methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic