Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CurrentSession - open JDBC Connections in CMT  RSS feed

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!