Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-515

Do not try to register synchronization when the transaction is no longer active

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Labels:
      None

      Description

      The current code can try to register a synchronization with the transaction manager when the only transaction on the thread is already committed (e.g. if someone tries to call getConnection in aftercompletion. We should not try to register at that point as it is invalid.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tomjenkinson Tom Jenkinson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: