Legacy code calling Spring: Ability to pass java.sql.Connection to Spring
Hi there,
We have legacy code and transaction mgmt which is centered around getting a java.sql.Connection and passing it around using the autoCommit flag to false to maintain a transaction boundary.
Our newer code uses Spring and declarative txn mgmt.
How can we take a java.sql.Connection obtained in the older code and pass this to Spring to use as the Connection behind the scenes to maintain transaction visibility for uncommited work?
Thanks in advance
Pat