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

Tomcat breaking Sessions?

K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
I have a web application which works prefectly fine, except that sometimes, with multiple clients, the session data "breaks" and all the methods which work on this data also break as a result. So my question is, does Tomcat guarantee multi-threading capability? Is each session object for each client safe from one another? The current problem I have is that working on session data from one client sometimes causes it to somehow currupt data from another session and crash Tomcat. I am simply getting some data from the session, processing it using 3rd party libraries and storing new data in the session again. This does not happen all the time, and it works well for a single user (and for multiple clients for a short period of time). I have not yet managed to find any pattern as to why/how this happens.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Sounds like a Tomcat question rather than a Servlets question. I am going to move this thread to the Apache/Tomcat forum.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Tomcat breaking Sessions?
It's not a secret anymore!