It's not a secret anymore!*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Session preserved across Tomcat restarts ?" Watch "Session preserved across Tomcat restarts ?" New topic
Author

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 ?

Thanks


Vikrant Pandit
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session preserved across Tomcat restarts ?