Top "Open-session-in-view" questions

Open Session In View (OSIV) is pattern where persistence context (session) is open and available in the presentation layer and closed at the end of the HTTP request.

Why is Hibernate Open Session in View considered a bad practice?

And what kind of alternative strategies do you use for avoiding LazyLoadExceptions? I do understand that open session in view …

java hibernate jpa lazy-loading open-session-in-view
Hibernate Open Session in View: Transaction per Request?

I'm using Hibernate with Spring on Tomcat. I've been reading and re-reading the oft pointed to JBoss wiki page on …

spring hibernate sessionfactory open-session-in-view
Configuring OpenSessionInViewFilter with Spring 3 and Servlet 3

i want to configure OpenSessionInViewFilter to able to use hibernate lazy initialization in view, so i added the filter definition …

hibernate spring servlet-3.0 open-session-in-view
Getting No bean named 'sessionFactory' error when using OpenSessionInViewFilter

I am using Hibernate's lazy loading, and after adding OpenSessionInViewFilter to my web.xml I started to get sessionFactory missing …

spring hibernate exception open-session-in-view