Hello,
This may sound silly, but how do I declare the creation of thread-local Hibernate sessions with simple JDBC transactions? I'm writing a relatively simple web application, and I need thread-local sessions to take advantage of Hibernate's lazy-loading proxies in my presentation layer. I need some sort of intercepter that will create a session before the dispatcher servlet passes control to my controller and close the session after the presentation layer returns.
I've been looking through all the documentation, but I understand very little about JTA or database clusters -- and the Spring source code makes even less sense. Help!
Matthew



Reply With Quote