Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing hibernates sessionperrequest-pattern using spring mvc  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!