Disabling Session Persistence
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
Comments