In general, you will use spring declarative transactions transactionattributes to Propagation_required
Hibernate uses Hibernatetransactionmanager, JDBC (IBATIS) to use Datasourcetransactionmanager
When they need to be consolidated into one transaction
The common practice is to configure unified DataSource, both Hibernate and JDBC (IBATIS) Use Hibernatetransactionmanager
There is a post in the jar that has elaborated this integration plan http://www.iteye.com/topic/11063?page=2
------------------------------------------------------
Hibernate and JDBC (IBATIS) both use Datasourcetransactionmanager.
The general view is that no! Think that Datasourcetransactionmanager does not deal with hibernate at all, the business of course can not be realized ...
But is that really the case?
The answer is no!, too. Http://forum.springframework.org/archive/index.php/t-9878.html
Juergen Hoeller:
Just If you proxies your JDBC DataSource with a transactionawaredatasourceproxy (available since Spring 1.1 RC1) and pass th At proxy to your Localsessionfactorybean, you could use Datasourcetransactionmanager in combination with Hibernate.
That is, the usetransactionawaredatasource of the configuration Sessionfactory is True
Hibernate and JDBC (IBATIS) both use Datasourcetransactionmanager to ensure that transactions
The principle is to ensure the uniqueness of the connection.
Hibernate and JDBC Transaction integration