Results 1 to 2 of 2

Thread: Support for Hibernate long sessions?

  1. #1

    Default Support for Hibernate long sessions?

    Hi.

    Is there some support in Spring for Hibernate long-session aproach - keeping Hibernate session in HttpSession, open during multiple requests, and only doing disconnect/reconnect for each request ?
    In HibernateInAction it's even described as best aproach to applciation transactions, at least from King's point of view.

    Regards,
    Vjeran

  2. #2
    Join Date
    Dec 2004
    Location
    Amsterdam, The Netherlands
    Posts
    3

    Default

    Currently there is no out-of-the-box support in Spring which will support a long-session approach or of you like an session-per-application-transaction pattern.

    However this is definitely an feature which would be something for the Springframework and is an omission in my opinion. There are many other Spring users who find the session-per-view pattern insufficient and awkward for large systems.

    There are more users, like myself who have written or are in the process of building an in-house solution. This shouldn't be too difificult.
    Please see also this discussion on this topic: http://forum.springframework.org/showthread.php?t=10344

    The approach i'm currently taken to support the session-per-logical-transaction pattern is an interceptor which will close the session via a demarcation at the end of a logical transaction.
    Last edited by robyn; May 19th, 2006 at 05:55 AM.

Similar Threads

  1. Replies: 12
    Last Post: Oct 30th, 2009, 02:20 AM
  2. Replies: 2
    Last Post: Sep 22nd, 2005, 04:11 PM
  3. Long or long ????
    By mia in forum Web
    Replies: 2
    Last Post: May 5th, 2005, 10:02 AM
  4. Replies: 0
    Last Post: Mar 23rd, 2005, 06:09 AM
  5. Replies: 2
    Last Post: Aug 30th, 2004, 12:04 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
  •