Configuring the client to use HTTP session failover
If you created a data grid in XSLD that uses
the Session template, you must configure the eXtreme Scale client using the
elasticCacheClient-1.0
feature.
Before you begin
About this task
Procedure
Example
<server description="HTTP Session Application Sample Remote Grid">
<!--
This sample program is provided AS IS and may be used, executed, copied and modified
without royalty payment by customer
(a) for its own instruction and study,
(b) in order to develop applications designed to run with an IBM WebSphere product,
either for customer's own internal use or for redistribution by customer, as part of such an
application, in customer's own products.
Licensed Materials - Property of IBM
5724-X67, 5655-V66 (C) COPYRIGHT International Business Machines Corp. 2012, 2020
-->
<!-- Enable features -->
<featureManager>
<feature>elasticCacheClient-1.0</feature>
</featureManager>
<httpEndpoint id="defaultHttpEndpoint"
host="*"
httpPort="9080"
httpsPort="9443" />
<httpSession idReuse="true" />
<elasticCacheClient id="client1" elasticCacheCatalogClusterRef="ep1" elasticCacheClientSecurityRef="securitySettings"/>
<elasticCacheCatalogCluster id="ep1">
<!-- ************************************************************** -->
<!-- Specify the list of catalog server endpoint here -->
<!-- Each server element should corresponding to one catalog server -->
<!-- ************************************************************** -->
<server host="169.46.22.168" port="4809" />
</elasticCacheCatalogCluster>
<elasticCacheClientSecurity id="securitySettings"
enabled="true"
transportType="TCP/IP"
credentialGeneratorClass="com.ibm.websphere.objectgrid.security.plugins.builtins.UserPasswordCredentialGenerator"
credentialGeneratorProps="user passwd"/>
<httpSessionElasticCache enabled="true" elasticCacheClientRef="client1" gridName="session"/>
<logging traceSpecification="*=info:session=all=enabled" maxFileSize="200" maxFiles="10" />
</server>