I have two spring configuration files. applicationContext.xml springappcustomized-servlet.xml
Calling the savePerson service method throws..
org.hibernate.HibernateException: No Hibernate Session bound to
thread, and conf
iguration does not allow creation of non-transactional one here
When I move the bean definitions of PersonDAO and personManager from springappcustomized-servlet.xml
to applicationContext.xml the savePerson service method works and the Person is inserted to the DB.
Also I can see from the logs that in the non working configuration transactions are not
started while in the working configuration transactions are started.
Is anyone able to explain what happens here and if I am missing anything?
Why is it that things work when the PersonDAO and personManager definitions
are moved to the applicationContext but not when they are in springappcustomized-servlet.xml?
applicationContext.xml
springappcustomized-servlet.xml
web.xml
The savePerson method of SimplePersonManager