• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing hibernates sessionperrequest-pattern using spring mvc

 
zamir arif
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anybody know How to implement the mentioned design pattern for my web-based application.

Thanks In Advance
 
ntumba lobo
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the openSessionInView filter supplied by spring to implement that.
This filter will take care of opening a hibernate session upon a request and closing the session when the reponse is rendered to the client.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!