Permanent Tomcat Server application session between re deploymets from Myeclipse IDE

All I am developing a web application using Tomcat 6.X and My Eclipse. When I make some changes to existing java files (Java Class, SERVLETS, Filter), I have to redistribute it to the tomcat server. but when I redeploy the application,

an existing session becomes null.

Is there a way to keep an existing session between redeployments from MY ECLISPE.

+4
source share
1 answer

From Tomcat Docs

Check out the JDBC persistence tutorial here, tomcat-6-session-persistence-through-jdbcstore

  • Filebased
  • JDBC based store

Resistance to reboot

When Catalina shuts down normally and restarts, or when the application restarts, the standard implementation of the Manager attempts to serialize all currently active sessions into a disk file located through the pathname attribute. All such saved sessions will be deserialized and activated (assuming they have not expired on average) when the application reload is completed.

In order to successfully restore the state of session attributes, all such attributes MUST implement the java.io.Serializable interface. You MAY cause the Manager to fulfill this restriction by including an element in your network application deployment descriptor (/WEB-INF/web.xml).

+2
source

Source: https://habr.com/ru/post/1344728/


All Articles