There is no changes in default configuration of Jgroups and Infinispan. Default cache EJB is using with below changes.
Using full-ha profile.
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent:write-attribute(name=owners, value=2)
#/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=persistence/file-store=*:remove
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=locking:add(isolation=REPEATABLE_READ)
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=transaction:add(mode=BATCH)
/subsystem=infinispan/cache-container=ejb/distributed-cache=persistent/component=persistence:add(passivation=false, attributes={string-keyed-jdbc-store={data-source="java:/jdbc/abc_ds", dialect=POSTGRES, table-name="jboss_ejb_infini_timer", shared=true, id-column={name="id", type="VARCHAR"}, data-column={name="payload", type="BLOB"}, timestamp-column={name="created", type="BIGINT"}}}) --force