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