Tuesday, October 26, 2010

No Hibernate Session bound to thread

I am converting an application that uses HibernateDaoSupport in the DAOs to use POJOs instead.
Each pojo now must autowire a sessionFactory in order to hook into hibernate.

I am getting the following error when i try to getSession() on my sessionFactory:

No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here

add a OpenSessionInViewFilter to my web.xml and filter on * with it

No comments:

Post a Comment