View Full Version : When does Spring close the session?
jominor
Sep 15th, 2004, 10:22 PM
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?
Loumeister
Sep 16th, 2004, 12:21 AM
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
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.