Using JDG as External Cache Container for WildFly HTTP Session Replication: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 14: | Line 14: | ||
Configuration details are available here: [[Infinispan Configuration]]. The external JDG cluster will be accessed by the WildFly instance over the HotRod protocol. | Configuration details are available here: [[Infinispan Configuration]]. The external JDG cluster will be accessed by the WildFly instance over the HotRod protocol. | ||
Define a dedicated cache for each web application: | |||
<pre> | |||
<subsystem xmlns="urn:infinispan:server:core:6.4"> | |||
<cache-container name="clustered" default-cache="default" statistics="true"> | |||
<transport executor="infinispan-transport" lock-timeout="60000"/> | |||
<distributed-cache name="default" ...> | |||
... | |||
</distributed-cache> | |||
<distributed-cache name="http-sessions" owners="2" mode="SYNC" start="EAGER"/> | |||
</cache-container> | |||
... | |||
</subsystem> | |||
</pre> |
Revision as of 00:22, 1 June 2016
External
- Externalizing Sessions with JDG https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Data_Grid/6.6/html/Administration_and_Configuration_Guide/chap-Externalize_Sessions.html
Internal
Overview
JDG can be used as an external cache container for HTTP session data within WildFly. This allows scaling of the data layer independent of the application, and enables different WildFly clusters, that may reside in various domains, to access data from the same JDG cluster.
Setup the JDG Cluster
Configuration details are available here: Infinispan Configuration. The external JDG cluster will be accessed by the WildFly instance over the HotRod protocol.
Define a dedicated cache for each web application:
<subsystem xmlns="urn:infinispan:server:core:6.4"> <cache-container name="clustered" default-cache="default" statistics="true"> <transport executor="infinispan-transport" lock-timeout="60000"/> <distributed-cache name="default" ...> ... </distributed-cache> <distributed-cache name="http-sessions" owners="2" mode="SYNC" start="EAGER"/> </cache-container> ... </subsystem>