• Post Reply Bookmark Topic Watch Topic
  • New Topic

CurrentSession - open JDBC Connections in CMT

 
Rvrk reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We are left with few open JDBC connections, not sure why,
using getSessionFactory().getCurrentSession() in CMT.
Do we need to close the session explicitly.
As per my understading CMT closes this part of transaction.
Do you think we need to add following to Hbt-Config:
--------------------------------
hibernate.transaction.flush_before_completion=true
hibernate.transaction.auto_close_session=true
-------------------------------------------

Thanks in advance, R.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!