Following error occurs while updating a particular data in my web application.I am using HibernateTransactionManager to manage all transactions in the application.
Error:-
Pre-bound JDBC Connection found!
HibernateTransactionManager does not
support running within
DataSourceTransactionManager if told
to manage the DataSource itself. It is
recommended to use a single
HibernateTransactionManager for all
transactions on a single DataSource,
no matter whether Hibernate or JDBC
access.
Are you sure you don’t have more than one transaction manager in your application? The exception suggests that you do (a
HibernateTransactionManagerand aDataSourceTransactionManager), and that they’re getting into a fight.If you do have both, then you need to change it to using just a
HibernateTransactionManager, and use that for all your transactions Hibernate and JDBC).