Joined: Tue Jun 01, 2004 8:06 pm Posts: 9 Location: Hamilton, Ontario, Canada
|
Sorry but anthony is correct.
A lot of bugs are due to poor Application design.
Closing a hibernate session will not close a HttpSession. But you can do that if you wish.
You should have a Session bean that implements HttpSessionBindingListener. Also this bean must have a method called valueUnbound(HttpSessionBindingEvent event) in which you can close your hibernate session. This method gets called whenever your HttpSession.invalidate() method gets called.
|
|