Just a small mistake kills 4-5 hrs while I was configuring a open Spring-Hibernate-JPA session for JSP. (I know it's not the best practice but as a quick fix I did it)
web.xml
contextConfigLocation
/WEB-INF/spring/appServlet/servlet-context.xml
appServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
1
openEntityManagerFilter
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
entityManagerFactoryBeanName
entityManagerFactory
openEntityManagerFilter
/*
The openEntityManagerFilter filter do the magic here :) It takes entityManagerFactory from the application servlet and does the tricks.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment