tomcat restart the session without failures

Local write code for each restart must be re-login waste a lot of time, do not log in again how to restart it, just let tomcat session will be written to the file, you can read the session from the file when you shut down at startup.

Just conf / context.xml configuration, can be realized as follows

    <Manager pathname="" />
    <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />

 

Guess you like

Origin www.cnblogs.com/aeolian/p/11770081.html