File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to perform DB operations during the session timeout in struts 1.3
Joined: Jul 21, 2011
Jul 25, 2011 18:03:45
In my application, i need to perform some DB operations before session invalidates. How can i achieve this during the session timeout? Where should i write the code to perform DB operations?
Joined: Oct 29, 2001
Jul 27, 2011 06:17:16
You can have code execute when the session times out with a HttpSessionListener. See
this page on the servlet life cycle
How To Ask Questions On JavaRanch
I agree. Here's the link:
subject: How to perform DB operations during the session timeout in struts 1.3
Qestions regarding sessions
webservice and distributed tx
Insert session data into a db at end of session
pls validate my locking strategy - all inputs are g8ly appreciated. (URLyBird)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015