I'm trying to use Hibernate's lazy instantiation using Spring's Hibernate convenience classes. At what points do Spring open/close the Hibernate session?
I'm trying to use Hibernate's lazy instantiation using Spring's Hibernate convenience classes. At what points do Spring open/close the Hibernate session?
---------------------------------
David H. McCoy
----------------------------------
The session is usually bound to the transaction, so it opens/closes with the start/end of the transaction. What type of transaction manager are you using? Are you using the built-in classes from Hibernate?
HTH,
Lou