Disabling session EJB (SLSB/SFSB) clustering while leaving web session replication enabled in JBoss EAP 7

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Issue

How to disable Session EJB (SLSB/SFSB) clustering while leaving web session replication enabled in JBoss EAP 7

Resolution

Change the distributed-cache to local-cache for example:

/subsystem=infinispan/cache-container=ejb/local-cache=passivation:add()
/subsystem=infinispan/cache-container=ejb/local-cache=passivation/component=locking:add(isolation=REPEATABLE_READ)
/subsystem=infinispan/cache-container=ejb/local-cache=passivation/component=transaction:add(mode=BATCH)
/subsystem=infinispan/cache-container=ejb/local-cache=passivation/store=file:add(passivation=true,purge=false)
/subsystem=infinispan/cache-container=ejb:write-attribute(name=default-cache,value=passivation)
/subsystem=infinispan/cache-container=ejb/distributed-cache=dist:remove()

From:

  <cache-container name="ejb" aliases="sfsb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan">
    <transport lock-timeout="60000"/>
    <distributed-cache name="dist">
      <locking isolation="REPEATABLE_READ"/>
      <transaction mode="BATCH"/>
      <file-store/>
    </distributed-cache>
  </cache-container>

To:

  <cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan">
    <transport lock-timeout="60000"/>
    <local-cache name="passivation">
      <locking isolation="REPEATABLE_READ"/>
      <transaction mode="BATCH"/>
      <file-store passivation="true" purge="false"/>
    </local-cache>
  </cache-container>
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.