我能否在重启后以某种方式恢复 JBoss 上的 session ?我想在我的开发机器上使用它。
最佳答案
这在 documentation 中得到了回答:
Since JBoss-3.2.6RC1:
The default tomcat session manager will persist sessions. This can lead to problems when restarting jboss or redeploying a war if the session contains non-serializable data.
To disable session persistence, you create a WEB-INF/context.xml with a Manager element that sets the pathname to an empty value:
<Context>
<Manager className="org.apache.catalina.session.StandardManager"
pathname="" ></Manager>
</Context>
JBoss-3.2.5 and earlier do not read the WEB-INF/context.xml file.
JBoss 4.0.3 has this disabled by default. See /jboss-4.0.3/server/default/deploy/jbossweb-tomcat55.sar/context.xml
关于java - 在 JBoss 中重启后恢复 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/862969/