File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Stateful webapp advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Stateful webapp advice" Watch "Stateful webapp advice" New topic

Stateful webapp advice

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys

I am working on a stateful webapp. I am wondering what I should do when I update my DB tables. Should I delete the whole session and rebuild it or should update the session ?
[ September 23, 2008: Message edited by: shaf maff ]
Gopikrishna Kunisetty
Ranch Hand

Joined: Jun 12, 2008
Posts: 35
Hi shaf maff,

If updating the db tables is last action that you have to do in that usecase scenario or with that session, you can invalidate the session. Otherwise, if there is scope for the user still to interact with the system, probably you may not be invalidating the session.
[ September 24, 2008: Message edited by: Gopikrishna Kunisetty ]

- Krishna<br /> SCJP 1.4 SCWCD 5
arulk pillai
Ranch Hand

Joined: May 31, 2007
Posts: 3371
You calear the data that is no longer required by

[] | [Java job hunting know how] | [Java resumes]
I agree. Here's the link:
subject: Stateful webapp advice
It's not a secret anymore!