Results 1 to 2 of 2

Thread: Legacy code calling Spring: Ability to pass java.sql.Connection

  1. #1
    Join Date
    Dec 2011
    Posts
    9

    Default Legacy code calling Spring: Ability to pass java.sql.Connection

    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

  2. #2
    Join Date
    Dec 2011
    Posts
    9

    Default

    Sorry - will repost in correct Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •