Hide Forgot
Title: Externalize HTTP Session from JBoss EAP 6.4 and later to JBoss Data Grid The docs describe the addition of a new cache container and cache where externalization can be done by simply adjusting the existing web cache (repl or dist) for example : <cache-container name="web" aliases="standard-session-cache" default-cache="repl" module="org.jboss.as.clustering.web.infinispan" statistics-enabled="true"> <transport lock-timeout="60000"/> <replicated-cache name="repl" mode="ASYNC" batching="true"> <file-store/> </replicated-cache> <replicated-cache name="sso" mode="SYNC" batching="true"/> <distributed-cache name="dist" l1-lifespan="0" mode="ASYNC" batching="true"> <file-store/> </distributed-cache> </cache-container> Also there jboss-web.xml is not a must, only needed in order to fine tune settings
At the least a separate cache config is needed (and jboss-web.xml to point to it), because the JDG cache name is hard-coded, and can't be shared between apps.