Transaction error updating data

An error occurs while updating individual data in my web application. I use HibernateTransactionManager to manage all transactions in the application.

Error: -

Pre-linked JDBC connection found! HibernateTransactionManager does not support within the framework of the DataSourceTransactionManager, if said to control the data source itself. It is recommended that you use one HibernateTransactionManager for all transactions on the same data source, regardless of Hibernate or JDBC access.

+4
source share
1 answer

Are you sure that your application has no more than one transaction manager? An exception indicates what you are doing (a HibernateTransactionManager and DataSourceTransactionManager ), and that they are getting into a fight.

If you have both options, you need to change it to use only the HibernateTransactionManager and use it for all Hibernate and JDBC transactions).

+3
source

All Articles