This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Session preserved across Tomcat restarts ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Session preserved across Tomcat restarts ?" Watch "Session preserved across Tomcat restarts ?" New topic

Session preserved across Tomcat restarts ?

Vikrant Pandit
Ranch Hand

Joined: Mar 27, 2006
Posts: 245
Hi Ranchers,

I am accessing my web application . Then I restarted tomcat . Then I again hit my web app from same web app.

And I am getting the same session with all attributes intact .

Does the Servlet Spec. talk about it ?


Vikrant Pandit
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Tomcat using Session Persistence to help retreive a session after it shutdowns or crashes. It's also used within clustered environments. I think that it's enabled by default, but uou can disable it.
I don't think that it's part of the specification (except the part on distributed environments).

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Session preserved across Tomcat restarts ?
It's not a secret anymore!