Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16826

Connection acquired while calling a stored procedure via JPA is not released

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.3.17, 5.0.6
    • Fix Version/s: 4.3.18, 5.0.7, 5.1 RC1
    • Component/s: Data:ORM
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      When a DB stored procedure is called via Spring JPA, connection acquired from Connection Pool is not release back after calling.

       

      Inside Class org.springframework.orm.jpa.SharedEntityManagerCreator and method invoke()

      entity manager is only closed if method name matches "queryTerminatingMethods" set which does not include "execute" method used for calling Stored Procedure.

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              gaurav.khandelwal Gaurav Khandelwal
              Last updater:
              Stéphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 2 days ago