Code example for TransactionAwareDataSourceProxy

0
    } 
 
    @Provides 
    @Singleton 
    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();
            p.load(DataSources.class.getResourceAsStream("/config.properties"));
 
            BoneCPDataSource result = new BoneCPDataSource();
Connect your IDE to all the code out there  Get Codota for Java