This is a Maven project to demo: 1) how to use Spring JDBC XML configuration to connect to two data sources. 2) how to use the Transaction manager to avoid the deadlock. 2.1) Guard the Transaction at each Dao method level 2.2) Guard the Transaction at the service level