DataSourceTransactionManager transactionManager = new DataSourceTransactionManager(dataSource);
registry.put("transactionManager", transactionManager);
{
SpringTransactionPolicy propagationRequiresNew = new SpringTransactionPolicy();
propagationRequiresNew.setTransactionManager(transactionManager);
propagationRequiresNew.setPropagationBehaviorName("PROPAGATION_REQUIRES_NEW");
registry.put("PROPAGATION_REQUIRES_NEW", propagationRequiresNew);
}
{
SpringTransactionPolicy propagationRequiresNew2 = new SpringTransactionPolicy();
propagationRequiresNew2.setTransactionManager(transactionManager);
propagationRequiresNew2.setPropagationBehaviorName("PROPAGATION_REQUIRES_NEW");
registry.put("PROPAGATION_REQUIRES_NEW-2", propagationRequiresNew2);
}
auditLogDao = new AuditLogDao(dataSource);
messageDao = new MessageDao(dataSource);