Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
Two-phase commit is a transaction protocol designed for the complications that arise with distributed resource managers. With a two-phase commit protocol, the distributed transaction manager employs a coordinator to manage the individual resource managers.
The commit process proceeds as
follows:
Phase 1
Each participating resource manager
coordinates local operations and forces all log records out:
If
successful, respond "OK"
If unsuccessful, either allow a
time-out or respond "OOPS"
Phase
2
If all
participants respond "OK":
Coordinator instructs
participating resource managers to "COMMIT"
Participants
complete operation writing the log record for the commit
Otherwise:
Coordinator instructs participating
resource managers to "ROLLBACK"
Participants complete their
respective local undos.
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.