views:

135

answers:

1

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.

A: 

Are you sure you don't have more than one transaction manager in your application? The exception suggests that you do (a HibernateTransactionManager and a DataSourceTransactionManager), 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).

skaffman
i am using HibernateTransactionManager only... i am not using DataSourceTransactionManager.
abby