File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Stateful webapp advice" Watch "Stateful webapp advice" New topic
Author

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
Author
Ranch Hand

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




Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stateful webapp advice
 
Similar Threads
Doubt in Stateful Session Beans
Business Interface (Stateful/Stateless)
Head First EJB - errata?
Doubts in CMT vs BMT beans
HTTPSession vs Stateful Session Bean