Hibernate Team |
 |
Joined: Tue Aug 26, 2003 3:00 pm Posts: 1816 Location: Austin, TX
|
It would be best to disconnect() the session and place it into session scope between the requests. Then during the subsequent requests, you can simply reconnect() the session.
This serves two purposes. One, because of the disconnect, the underlying jdbc connection can be released for better resource management by the server. Secondly the hibernate session would be destroyed on session timeout by it being in session scope.
HTH
|
|