Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
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);
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.