Announcement Announcement Module
Collapse
No announcement yet.
When does Spring close the session? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • When does Spring close the 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?

  • #2
    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

    Comment

    Working...
    X