Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic