/
Transaction Management
Transaction Management
The tomcat connection pooled datasource is registered with spring managed transaction manager in persistence_postgres.xml
<tx:annotation-driven transaction-manager="openSRPTransactionManager" />
<bean id="openSRPTransactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="openSRPDataSource" />
</bean>
Spring transaction management can be used to define transactions
To define a method or class as having a transaction or part of a transaction simply annotate the method with @Transactional annotation.
Use the documentation on https://docs.spring.io/spring/docs/3.1.x/spring-framework-reference/html/transaction.html to learn more about spring managed transactions
, multiple selections available,
Related content
Mybatis
Mybatis
More like this
Data Source
Data Source
More like this
Postgres Configuration
Postgres Configuration
More like this
Postgres Database Support as Main Datastore
Postgres Database Support as Main Datastore
More like this
Migrating from MySQL to Postgres and vice versa
Migrating from MySQL to Postgres and vice versa
More like this
OpenSRP Web Interface (Dashboard)
OpenSRP Web Interface (Dashboard)
More like this