Hi Paul,
As discussed earlier I have gone through one of your email threads and I found out that the configuration which I have shared below works for HTTP session replication to
remote infinispan cluster server.
But I tried the same but it's not working for me.
Below is my scenario
1. Login with two different users on two different nodes (USER1 -> NODE1 AND USER2 -> NODE2).
2. Now shutdown NODE1
3. If I refresh the application page of USER1 then I should not get any logout page rather it should be redirected to node2, which is not happening with my case. I am getting a re-login page with a session timeout message.
Please help me with the configuration if I have missed something.
I am using wildfly 20 and infinispan 10.1.8 (remote server as of now single node)
Below are my configuration
I have added below configuration in my both standalone.xml (standalone server 1 and standalone server2)
<subsystem xmlns="urn:jboss:domain:infinispan:10.0">
<cache-container name="server" default-cache="default" module="org.wildfly.clustering.server">
<local-cache name="default">
<transaction mode="BATCH"/>
</local-cache>
</cache-container>
<!-- <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
<local-cache name="passivation">
<locking isolation="REPEATABLE_READ"/>
<transaction mode="BATCH"/>
<file-store passivation="true" purge="false"/>
</local-cache>
</cache-container> -->
<cache-container name="web" default-cache="dgt-web" module="org.wildfly.clustering.web.infinispan">
<transport lock-timeout="60000"/>
<invalidation-cache name="dgt-web">
<locking isolation="REPEATABLE_READ"/>
<transaction mode="BATCH"/>
<hotrod-store remote-cache-container="dgt_cache_container" fetch-state="false" passivation="false" purge="false" shared="true"/>
</invalidation-cache>
</cache-container>
<cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
<local-cache name="passivation">
<locking isolation="REPEATABLE_READ"/>
<transaction mode="BATCH"/>
<file-store passivation="true" purge="false"/>
</local-cache>
</cache-container>
<cache-container name="hibernate" module="org.infinispan.hibernate-cache">
<local-cache name="entity">
<object-memory size="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<object-memory size="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps"/>
</cache-container>
<remote-cache-container name="dgt_cache_container" default-remote-cluster="infinispan-cluster" module="org.wildfly.clustering.web.hotrod">
<remote-clusters>
<remote-cluster name="infinispan-cluster" socket-bindings="remote-infinispan"/>
</remote-clusters>
</remote-cache-container>
</subsystem>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<outbound-socket-binding name="remote-infinispan">
<remote-destination host="localhost" port="11222"/>
</outbound-socket-binding>
</socket-binding-group>