Menu Search Sign up

JBoss

Clustering in Web Applications

https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.4/html/Development_Guide/chap-Clustering_in_Web_Applications.html 

Use JBoss CLI to configure 2 session cache mode: repl (replicate session of current node to all other nodes) or dist (replicate session of current node to selected other nodes)

Enable Session Replication in Your Application by adding the <distributable/> element inside the <web-app> tag of your application's web.xml descriptor file. 

Modify the default replication behavior by configuring the <replication-config> element, which is a child element of the <jboss-web> element of your application's jboss-web.xmlfile. Typical changes include 

<replication-trigger>: will only the setAttribute operation trigger a replication?

<replication-granularity>: will replicate at session level or at session attribute level? (if set, only modified attributes since last session replication will be replicated)