1. A method for recovery of a two-phase commit transaction, the method comprising: a computer transmitting a first transaction identifier to a data store, wherein the first transaction identifier defines a two-phase commit transaction; the computer transmitting a prepare command for the first transaction identifier to a first resource manager; the computer determining if a failure and restart occurred within a distributed data processing environment, wherein the failure and restart occurs after the first resource manager receives an end command, but prior to completing execution of the prepare command for the first transaction identifier; responsive to determining the failure and restart did occur within the distributed data processing environment, the computer retrieving the first transaction identifier from the data store; and the computer transmitting a rollback command for the retrieved first transaction identifier to the first resource manager.