• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transcation basic

 
Shahnawaz Siddiqui
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen some tutorial they used Transcation Manager to commit Transcation, and Some place Transcation Demarcation.Can anybody tell me difference between them?
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Transaction demarcation is used when you want the application server to commit the transaction for you. It is most often used with EJBs where you define the transaction needs of the methods and the app server automatically determines when to commit the transaction.

If, instead, you want to control your own transactions, then call commit on the Transaction Manager within your code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic