Hibernate session.close() not returning connection to pool

后端 未结 2 1300
梦如初夏
梦如初夏 2020-12-09 18:31

My application has long running transactions and hence I tried the option session.close() at the end of every method to ensure that the connection objects are not held indef

2条回答
  •  盖世英雄少女心
    2020-12-09 19:02

    if you are using the JDBCTransactionManager, the connection will be returned to the connectionpool when the transactions ends.

提交回复
热议问题