How can I turn off session persistence for geronimo? Is this something I should be doing? – I have no use for persisted sessions in my application. (This is because I recieve a not serializable error in my console, but I do not wish to serialize)
Share
It depends upon which web container you’re using within Geronimo; both Tomcat and Jetty are supported.
Tomcat
Add a context.xml file to your application or add these nodes:
From the tomcat docs for pathname: Restart persistence may be disabled by setting this attribute to an empty string.
The properties are explained at these links:
https://cwiki.apache.org/GMOxDOC22/configuring-session-manager-of-tomcat.html
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html#Standard_Implementation
Jetty
This container does not persist sessions by default, so there there is nothing to do except to make sure that the SessionHandler is not enabled. Remove the sessionHandler node if it exists in your context configuration.
Informational link:
http://wiki.eclipse.org/Jetty/Howto/Persisting_Sessions