List of usage examples for org.springframework.jdbc.datasource DataSourceTransactionManager afterPropertiesSet
@Override public void afterPropertiesSet()
From source file:edu.wisc.jmeter.dao.JdbcMonitorDao.java
public JdbcMonitorDao(DataSource dataSource, int purgeOldFailures, int purgeOldStatus) { this.jdbcTemplate = new NamedParameterJdbcTemplate(dataSource); final DataSourceTransactionManager dataSourceTransactionManager = new DataSourceTransactionManager( dataSource);//from w ww.j ava 2 s . c om dataSourceTransactionManager.afterPropertiesSet(); this.transactionTemplate = new TransactionTemplate(dataSourceTransactionManager); this.transactionTemplate.afterPropertiesSet(); this.purgeOldFailure = TimeUnit.MILLISECONDS.convert(purgeOldFailures, TimeUnit.MINUTES); this.purgeOldStatus = TimeUnit.MILLISECONDS.convert(purgeOldStatus, TimeUnit.MINUTES); }