The resource manager interacts with the transaction manager and the database to manage connections. The resource manager: