Chapter 6. Appendix
Additional information for Data Grid 8.0.
6.1. Externalizing HTTP Sessions from JBoss Web Server (JWS) to Data Grid Copy linkLink copied to clipboard!
Externalize HTTP sessions from JBoss Web Server (JWS) to Data Grid via the Apache Tomcat org.apache.catalina.Manager interface.
6.1.1. Installing the Session Client Copy linkLink copied to clipboard!
-
Download the
redhat-datagrid-8.0.0.Final-tomcat<$version>-session-client.ziparchive from the Data Grid Software Downloads on the Red Hat customer portal. -
Copy the contents of the
lib/directory in the archive into$CATALINA_HOME.
6.1.2. Configuring the Session Manager Copy linkLink copied to clipboard!
-
Open either
$CATALINA_HOME/conf/context.xmlor/WEB-INF/context.xmlfor editing. -
Specify the
HotRodManagerclass for the Session Manager and define configuration as appropriate. -
Save and close
context.xml.
Example Configuration
<Manager className="org.wildfly.clustering.tomcat.hotrod.HotRodManager"
configurationName="mycache"
persistenceStrategy="FINE"
maxActiveSessions="100"
server_list="127.0.0.1:11222;127.0.0.1:11223;127.0.0.1:11224"/>
<Manager className="org.wildfly.clustering.tomcat.hotrod.HotRodManager"
configurationName="mycache"
persistenceStrategy="FINE"
maxActiveSessions="100"
server_list="127.0.0.1:11222;127.0.0.1:11223;127.0.0.1:11224"/>
6.1.3. HotRodManager Configuration Properties Copy linkLink copied to clipboard!
| Property | Description |
|---|---|
|
|
Specifies a cache instance or template defined in |
|
| Defines how sessions map to entries in the cache.
|
|
| Defines the maximum number of sessions to store in the cache. The default is no maximum (limitless). |
To configure Hot Rod clients, specify properties without the infinispan.client.hotrod. prefix. For more information, see the Hot Rod Client Configuration API.
You can also specify common attributes for the Session Manager. Refer to the appropriate version of the Apache Tomcat documentation as follows: