Code example for TransactionAwareDataSourceProxy

    DataSourceTransactionManager provideDataSourceTransactionManager() {
        return new DataSourceTransactionManager(new TransactionAwareDataSourceProxy(DATA_SOURCE));
     * The singleton instance 
    private static final DataSource DATA_SOURCE;
    static { 
        try { 
            // We're using BoneCP here to configure a connection pool 
            Properties p = new Properties();
            BoneCPDataSource result = new BoneCPDataSource();
Connect your IDE to all the code out there  Get Codota for Java