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