This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Transcation basic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Transcation basic" Watch "Transcation basic" New topic
Author

Transcation basic

Shahnawaz Siddiqui
Greenhorn

Joined: Apr 29, 2008
Posts: 24
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

Joined: May 14, 2008
Posts: 5772
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transcation basic
 
Similar Threads
Transaction Problem
TransactionRollbackException
part ii transcation question
How to Check the active transcation to clear the session?
System Exceptions Doubt