What is Two-Phase Commit Tool?

The Two-Phase Commit Tool (TPCT)is a tool that simulate the two-phase commit environment. It will perform the two phase commit protocol in the distributed application and validate the implementation of Transaction Manager and Application Program(s) user provided.

The system components of tool is shown in the figure below:

Figure 1 Two-Phase Commit Tool

You will provide your complied TM and AP(s) class files to the tool. The Class Loader will dynamically load your files and the Two Phase Controller will perform the distributed transaction that you implement in your AP(s). If you have more than one AP(s), those AP(s) will run simultaneously. Resource Manager Proxy is the agent to access the DBMS(s). In the end, the Validator will validate your implementations and output the result in the log window.

 


Back to Help Contents