Tomcat - Redeploy war without losing sessions.

How can I redeploy a war with out losing sessions?

My session are generalizable. Before using a war, I could turn the server off, update my app, and turn it back on with out losing them.
LVL 3
modsiwAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dushyant SharmaCommented:
you need to move session to some persistant storage like database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
modsiwAuthor Commented:
example?
Sathish David Kumar NArchitectCommented:
what server your using ??
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

modsiwAuthor Commented:
Tomcat 5.5
ValeriCommented:
It should be default behaviour. All of the objects attached to the sessions must be serializable.
modsiwAuthor Commented:
So, using default behavior:

stop server
replace war file
leave exploded directory as is
start server


The sessions should be there? They are serializable.
ValeriCommented:
yes, they should be there.
modsiwAuthor Commented:
:/

they aren't

Where does TC actually save the sessions?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.