Loading
JTA Nested Transaction

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is a Nested Transaction ?


Ans)

A nested transaction is used to provide the transactional guarantee for a subset of operations that
performed in a larger transaction, this would allow you to comitt or abort the subset of operations
independently of the larger transaction. 

Committing a nested transaction has no effect on the state of the parent transaction. The parent
transaction is still uncommitted. However, the parent transaction can now see any modifications made
by the child transaction. Those modifications, of course, are still hidden to all other transactions
until the parent also commits.

// parent transaction
 Transaction parentTxn = myEnv.beginTransaction(null, null);
// child transaction
Transaction childTxn = myEnv.beginTransaction(parentTxn, null);



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

JTA Nested Transaction


JTA Nested Transaction

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free