Camunda supports MyBatis only. So don’t add explicitly any Hibernate dependencies for transaction management. Might be in future release it could support Hibernate.
- Create a Bean called Datasource and inject oracle connection properties.
- create a DatasourceTransactionManager bean and inject the above Datasource bean.
Before process engine kick starts this 2 beans should be instantiated and configured. Add the below implementation any of the class which has @Configuration annotation or else create one.
@Bean(name = "dataSource")
public DataSource dataSource() {
SimpleDriverDataSource dataSource = new SimpleDriverDataSource();
try {
dataSource.setDriver("");
dataSource.setUrl("");
dataSource.setUsername("");
dataSource.setPassword("");
} catch (InstantiationException | IllegalAccessException e) {
//handle exception
}
return dataSource;
}
@Bean(name = "transactionManager")
public DataSourceTransactionManager transactionManager() {
return new DataSourceTransactionManager(dataSource());
}
Then you are good to go 