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