Results 1 to 2 of 2

Thread: When does Spring close the session?

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Herndon, Virginia
    Posts
    28

    Default 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?
    ---------------------------------
    David H. McCoy


    ----------------------------------

  2. #2
    Join Date
    Aug 2004
    Posts
    218

    Default

    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

Similar Threads

  1. OpenSessionInView and portlet support
    By garpinc2 in forum Web Flow
    Replies: 31
    Last Post: Apr 9th, 2010, 11:12 AM
  2. Replies: 2
    Last Post: Aug 31st, 2005, 12:37 PM
  3. Replies: 0
    Last Post: Aug 25th, 2005, 05:11 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •