I am working on migrating an older project to use Spring 3 and Hibernate 4. We did use the HibernateTemplate to access the database.
Since HibernateTemplate is deprecated, I using the Session Factory directly and Hibernate Transaction Manager.
I have gone through numerous examples and everything looks good to me. But I keep getting and error when I call my method that get's the current session.
Here is the error, I don't have an stack trace that relates to this error but I can provide what it does dump.
org.hibernate.HibernateException: No Session found for current thread
I have commented out the @Transactional because when I leave it in, c3p0 fails and my service won't even start. I know it is some configuration that I am missing or have understood incorrectly.
Please let me know if you need more information. Any help is greatly appreciated.