This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.
Database Session Persistence
This feature enables persistence of HTTP sessions to a datasource using JDBC. Persisting HTTP session data to a database allows recovery of the data after a server restart or unexpected server failure. Failover of HTTP sessions can be achieved by configuring multiple servers to persist data to the same location
Enabling this feature
To enable the Database Session Persistence feature, add the following element declaration inside the featureManager element in your
server.xml file:
<feature>sessionDatabase-1.0</feature>
Supported Java™ Versions
- JavaSE-1.6
- JavaSE-1.7
- JavaSE-1.8
Developing a feature that depends on this feature
If you are developing a feature that depends on the Database Session Persistence feature, include the following item in the Subsystem-Content header in the feature manifest file for your new feature:
com.ibm.websphere.appserver.sessionDatabase-1.0; type="osgi.subsystem.feature"
Features that this feature enables
Feature configuration elements
You can use the following elements in your server.xml file to configure the Database Session Persistence feature: