11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

It is RRS that provides the means to implement two-phase commit, but a resource manager<br />

must also use registration services and context services in conjunction with resource<br />

recovery services.<br />

Two-phase commit<br />

The two-phase commit protocol is a set <strong>of</strong> actions used to make sure that an application<br />

program either makes all changes to the resources represented by a single unit <strong>of</strong> recovery<br />

(UR), or it makes no changes at all. This protocol verifies that either all changes or no<br />

changes are applied even if one <strong>of</strong> the elements (such as the application, the system, or the<br />

resource manager) fails. The protocol allows for restart and recovery processing to take place<br />

after system or subsystem failure.<br />

For a discussion <strong>of</strong> the term unit <strong>of</strong> recovery, see 7.27, “Unit <strong>of</strong> work and unit <strong>of</strong> recovery” on<br />

page 426.<br />

424 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!