
Originally Posted by
itsyuvaraj
I am using DatasourceTransactionmanager in my project. Project uses JDBCTemplate mostly (or DataSource to get connection and then DB access in few places). I am using annotation driven transactions. These datasource related stuff is read only. i.e. no any DB save/update are done. I am using DBCP pooling.
This project has one dependency which is responsible to store/retrieve data from database using hibernate. i.e. this is essentially DB write operation API. This dependent project however uses HiberanteTransactionmanager; annotation driven.
Below are few of my doubts (probably i am bit lazy to dig the spring code):
1. How transaction in my project and dependent project are related, if i started a transaction in my project and a call is made to dependent project's method which has Trx propagation REQUIRED, what will happen? Same Trx will continue, as nested will start?
2. If in my project i choose to completely avoid the transaction, as i am not really doing any save/update operations, should it be alright?