• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate Session Control in Spring

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new to Spring and sort of with Hibernate. I'm migrating from using Hibernate standalone to integration with Spring and was told it was going to be able to close sessions with minimal configuration.

I'm not sure where to close the session and how I should configure it to close the sessions.

As we speak I have a DAO that extends HibernateDaoSupport. By printing Stats of the Session Factory it shows that no sessions are closed.

What am I missing here?

-Avinash Rawana
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you using from Spring? HibernateDaoSupport or HibernateTemplate directly? Please include a snippet of your Spring config for the Hibernate related components. Also I would recommend reading Spring Data Access using O/R Mappers if you haven't already.
 
reply
    Bookmark Topic Watch Topic
  • New Topic