Connection acquired while calling a stored procedure via JPA is not released [SPR-16826] #21366
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Gaurav Khandelwal opened SPR-16826 and commented
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.
Affects: 4.3.17, 5.0.6
Attachments:
Issue Links:
Referenced from: commits 997ca5c, 3978d55, 3c8c996
Backported to: 4.3.18
The text was updated successfully, but these errors were encountered: