Hy all,
I have a program which uses Hibernate with the DAOFactory pattern, every is ok until I use lazy loading in order to limits number select query. I also use struts for web layer.
After web research, I visit Karl Baum's Weblog http://www.jroller.com/page/kbaum/20...ation_with_dao
I try to use solution 1 using OpenSessionInViewFilter, but I have null pointer exception when I use "getHibernateTemplate()". It may be due to problems beetwen hibernateTemplate and sessionFactory.
If I use OpenSessionInViewFilter, I don't know if I must use applicationContext.xml or if configuration in web.xml is enough. If someone can explain me the solution for using lazy loading with Hibernate.....
Perhaps problem come with my use of struts
Thank you for your help...
Ben....
