• Post Reply Bookmark Topic Watch Topic
  • New Topic

OSIV attern

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OSIV (Open session in view) pattern is imlemented using filters... and it says:

When the request arrives, you start a database transaction and open a new persistence context. After the controller
has executed and the view has been rendered, you commit the database transaction.


My question is: controller is a servlet and filter code will come in picture immediately when servlet (controller) ends and before the Jsp is shown... ( and not after Jsp is shown as written in the above statement)... Is my understanding correct ?
 
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!