1. A method for managing a transaction, the method comprising the steps of: a computer collecting first test metrics on a transaction hosted within a middleware container, and is executing within a first environment; the computer generating baseline values of expected execution behavior of the transaction, based on the first test metrics; the computer collecting second test metrics on the transaction hosted within the middleware container, and is executing within a second environment; the computer comparing the second test metrics to the baseline values; the computer determining whether the second test metrics satisfy the baseline values; and responsive to the second test metrics not satisfying the baseline values, the computer identifying the transaction as a candidate for cancellation.