There are three layers for injecting different components to the spring transaction framework including spring transaction and connection pool and connection datasource. Spring transaction framework will look up its reused connection from the specified pool and pool will look up its new connection from the datasource. That is,spring transaction framework supports different connection pools and different datasources and the local sql-driver will provide different connections for the datasources implement.