When should I update the database?

Ming Li <[email protected]> Fri, 21 Oct 2005 12:46:00 -0600
Newsgroups gmane.comp.java.sun.servlet
Message-ID <LISTSERV%[email protected]>
I have some data kept in the session object that can be changed very
frequently by users during each session, so it's not efficient to update
database whenever a user makes a change. I want to update database just
before the session times out. I thought I could do database update in
valueUnbound of HttpSessionBindingListener. But at that moment, the data is
already gone. Could anybody suggest any solution?

Thanks.

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html