dataSource = decorateDataSourceIfRequired(dataSource);
ConnectionFactory connectionFactory;
if (retryPolicyTemplate == null)
{
connectionFactory = new SimpleConnectionFactory();
}
else
{
connectionFactory = new RetryConnectionFactory(retryPolicyTemplate, new SimpleConnectionFactory());
}
dbConnectionFactory = new TransactionalDbConnectionFactory(new TransactionCoordinationDbTransactionManager(), dbTypeManager, connectionFactory, this.getDataSource());
}