I have seen some tutorial they used Transcation Manager to commit Transcation, and Some place Transcation Demarcation.Can anybody tell me difference between them?
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.