1. A computer program product for providing notification of a failure of a resource managed by a resource manager, the computer program product comprising: a computer readable storage medium having program instructions embodied therewith, wherein the program instructions are executable by a computer processor to cause the computer processor to perform a method comprising: receiving, by a processor, a request to perform a transaction, wherein one or more activities of the transaction are associated with one or more application server processes; creating, by the processor, one or more entries in a mapping file, wherein the one or more entries include at least information regarding the one or more application server processes and the one or more resource managers to which the one or more application server processes are connected, to perform the one or more activities of the transaction; in response to detection of a resource failure associated with a resource manager of the one or more resource managers, receiving, by the processor, a notification from a call-back function of an extended architecture (XA) switch of the resource manager associated with the resource failure; determining, by the processor, the one or more application server processes connected to the resource manager associated with the resource failure, from the one or more entries that are included in the mapping file; and sending, by the processor, an event to terminate the one or more application server processes connected to the resource manager associated with the resource failure.