title: Disable Infinispan Clustering in Wildfly 10.1
body: <p>I have two Wildfly 10.1.0 Final server running on the same machine. Each has the same application deployed but for different clients.
  Each server is also configured to use Inifinispan 8.2.4 as a second level cache.</p>
  
  <p>Now, here is the situation: the first server starts and it comes to the following log entries:</p>
  
  <pre><code>2017-04-19 06:25:29,414 INFO  (ServerService Thread Pool -- 61) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.start) ISPN000078: Starting JGroups channel infinispan-hibernate-cluster
  2017-04-19 06:25:36,166 INFO  (ServerService Thread Pool -- 61) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted) ISPN000094: Received new cluster view for channel infinispan-hibernate-cluster: [XXX-56490|0] (1) [XXX-56490]
  2017-04-19 06:25:36,170 INFO  (ServerService Thread Pool -- 61) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded) ISPN000079: Channel infinispan-hibernate-cluster local address is XXX-56490, physical addresses are [127.0.0.1:7800]
  </code></pre>
  
  <p>This is the log from starting the second server:</p>
  
  <pre><code>2017-04-19 06:26:16,869 INFO  (ServerService Thread Pool -- 69) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.start) ISPN000078: Starting JGroups channel infinispan-hibernate-cluster
  2017-04-19 06:26:17,800 INFO  (ServerService Thread Pool -- 69) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted) ISPN000094: Received new cluster view for channel infinispan-hibernate-cluster: [XXX-56490|1] (2) [XXX-56490, XXX-29707]
  2017-04-19 06:26:17,807 INFO  (ServerService Thread Pool -- 69) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded) ISPN000079: Channel infinispan-hibernate-cluster local address is XXX-29707, physical addresses are [127.0.0.1:7801]
  </code></pre>
  
  <p>At the same time as the second server starts, this happens at the first server:</p>
  
  <pre><code>2017-04-19 06:26:17,761 INFO  (Incoming-2,XXX-56490) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted) ISPN000094: Received new cluster view for channel infinispan-hibernate-cluster: [XXX-56490|1] (2) [XXX-56490, XXX-29707]
  </code></pre>
  
  <p>plus several messages like the following, looks like one for each cached entity:</p>
  
  <pre><code>2017-04-19 06:26:18,321 INFO  (remote-thread--p11-t1) [org.infinispan.CLUSTER.broadcastRebalanceStart) ISPN000310: Starting cluster-wide rebalance for cache XXX.ear/XXX.jar#XXX.Section, topology CacheTopology{id=2, rebalanceId=2, currentCH=ReplicatedConsistentHash{ns = 256, owners = (1)[XXX-56490: 256]}, pendingCH=ReplicatedConsistentHash{ns = 256, owners = (2)[XXX-56490: 126, XXX-29707: 130]}, unionCH=null, actualMembers=[XXX-56490, XXX-29707]}
  2017-04-19 06:26:18,327 INFO  (remote-thread--p11-t1) [org.infinispan.CLUSTER.log) [Context=XXX.ear/XXX.jar#XXX.Section][Scope=XXX-56490]ISPN100002: Started local rebalance
  2017-04-19 06:26:18,334 INFO  (transport-thread--p13-t23) [org.infinispan.CLUSTER.log) [Context=XXX.ear/XXX.jar#XXX.Section][Scope=XXX-56490]ISPN100003: Finished local rebalance
  2017-04-19 06:26:18,420 INFO  (remote-thread--p11-t1) [org.infinispan.CLUSTER.log) [Context=XXX.ear/XXX.jar#XXX.Section][Scope=XXX-29707]ISPN100003: Finished local rebalance
  2017-04-19 06:26:18,422 INFO  (remote-thread--p11-t1) [org.infinispan.CLUSTER.endRebalance) ISPN000336: Finished cluster-wide rebalance for cache XXX.ear/XXX.jar#XXX.Section, topology id = 2
  </code></pre>
  
  <p><strong>I would like to disable that behaviour completely and have the two instances running without sharing information.</strong></p>
  
  <p>I found in the infinispan-core-8.2.4.Final.jar module three default config files (jgroups-tcp, jgroups-google, jgroups-ec2) containing a port set to 7800.</p>
  
  <p>I checked several documentation already but couldn't find any answer.</p>
  
  <p>Maybe I need to disable any clustering feature in wildfly directly? Is it activated by default?</p>
  
  <p>This is the used standalone.xml from the wildfly/standalone/configuration/ folder:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  
  &lt;server xmlns="urn:jboss:domain:4.2"&gt;
  
  &lt;extensions&gt;
      &lt;extension module="org.jboss.as.clustering.infinispan"/&gt;
      &lt;extension module="org.jboss.as.connector"/&gt;
      &lt;extension module="org.jboss.as.deployment-scanner"/&gt;
      &lt;extension module="org.jboss.as.ee"/&gt;
      &lt;extension module="org.jboss.as.ejb3"/&gt;
      &lt;extension module="org.jboss.as.jaxrs"/&gt;
      &lt;extension module="org.jboss.as.jdr"/&gt;
      &lt;extension module="org.jboss.as.jmx"/&gt;
      &lt;extension module="org.jboss.as.jpa"/&gt;
      &lt;extension module="org.jboss.as.jsf"/&gt;
      &lt;extension module="org.jboss.as.logging"/&gt;
      &lt;extension module="org.jboss.as.mail"/&gt;
      &lt;extension module="org.jboss.as.naming"/&gt;
      &lt;extension module="org.jboss.as.pojo"/&gt;
      &lt;extension module="org.jboss.as.remoting"/&gt;
      &lt;extension module="org.jboss.as.sar"/&gt;
      &lt;extension module="org.jboss.as.security"/&gt;
      &lt;extension module="org.jboss.as.transactions"/&gt;
      &lt;extension module="org.jboss.as.webservices"/&gt;
      &lt;extension module="org.jboss.as.weld"/&gt;
      &lt;extension module="org.wildfly.extension.batch.jberet"/&gt;
      &lt;extension module="org.wildfly.extension.bean-validation"/&gt;
      &lt;extension module="org.wildfly.extension.io"/&gt;
      &lt;extension module="org.wildfly.extension.messaging-activemq"/&gt;
      &lt;extension module="org.wildfly.extension.request-controller"/&gt;
      &lt;extension module="org.wildfly.extension.security.manager"/&gt;
      &lt;extension module="org.wildfly.extension.undertow"/&gt;
  &lt;/extensions&gt;
  
  
  &lt;management&gt;
      &lt;security-realms&gt;
          &lt;security-realm name="XXXXX-system-realm"&gt;
              &lt;authentication&gt;
                  &lt;jaas name="XXXXX-login"/&gt;
              &lt;/authentication&gt;
          &lt;/security-realm&gt;
          &lt;security-realm name="ManagementRealm"&gt;
              &lt;authentication&gt;
                  &lt;local default-user="$local" skip-group-loading="true"/&gt;
                  &lt;properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/&gt;
              &lt;/authentication&gt;
              &lt;authorization map-groups-to-roles="false"&gt;
                  &lt;properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/&gt;
              &lt;/authorization&gt;
          &lt;/security-realm&gt;
          &lt;security-realm name="ApplicationRealm"&gt;
              &lt;server-identities&gt;
                  &lt;ssl&gt;
                      &lt;keystore path="application.keystore" relative-to="jboss.server.config.dir" keystore-password="password" alias="server" key-password="password" generate-self-signed-certificate-host="localhost"/&gt;
                  &lt;/ssl&gt;
              &lt;/server-identities&gt;
              &lt;authentication&gt;
                  &lt;local default-user="$local" allowed-users="*" skip-group-loading="true"/&gt;
                  &lt;properties path="application-users.properties" relative-to="jboss.server.config.dir"/&gt;
              &lt;/authentication&gt;
              &lt;authorization&gt;
                  &lt;properties path="application-roles.properties" relative-to="jboss.server.config.dir"/&gt;
              &lt;/authorization&gt;
          &lt;/security-realm&gt;
      &lt;/security-realms&gt;
      &lt;audit-log&gt;
          &lt;formatters&gt;
              &lt;json-formatter name="json-formatter"/&gt;
          &lt;/formatters&gt;
          &lt;handlers&gt;
              &lt;file-handler name="file" formatter="json-formatter" path="audit-log.log" relative-to="jboss.server.data.dir"/&gt;
          &lt;/handlers&gt;
          &lt;logger log-boot="true" log-read-only="false" enabled="false"&gt;
              &lt;handlers&gt;
                  &lt;handler name="file"/&gt;
              &lt;/handlers&gt;
          &lt;/logger&gt;
      &lt;/audit-log&gt;
      &lt;management-interfaces&gt;
          &lt;http-interface security-realm="ManagementRealm" http-upgrade-enabled="true"&gt;
              &lt;socket-binding http="management-http"/&gt;
          &lt;/http-interface&gt;
      &lt;/management-interfaces&gt;
      &lt;access-control provider="simple"&gt;
          &lt;role-mapping&gt;
              &lt;role name="SuperUser"&gt;
                  &lt;include&gt;
                      &lt;user name="$local"/&gt;
                  &lt;/include&gt;
              &lt;/role&gt;
          &lt;/role-mapping&gt;
      &lt;/access-control&gt;
  &lt;/management&gt;
  
  &lt;profile&gt;
      &lt;subsystem xmlns="urn:jboss:domain:logging:3.0"&gt;
          &lt;some logging config&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:batch-jberet:1.0"&gt;
          &lt;default-job-repository name="in-memory"/&gt;
          &lt;default-thread-pool name="batch"/&gt;
          &lt;job-repository name="in-memory"&gt;
              &lt;in-memory/&gt;
          &lt;/job-repository&gt;
          &lt;thread-pool name="batch"&gt;
              &lt;max-threads count="10"/&gt;
              &lt;keepalive-time time="30" unit="seconds"/&gt;
          &lt;/thread-pool&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:bean-validation:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:datasources:4.0"&gt;
          &lt;datasources&gt;
              &lt;datasource jta="true" jndi-name="java:/XXXXXDS" pool-name="PostgreSQLPool" enabled="true" use-java-context="true" use-ccm="true"&gt;
                  &lt;connection-url&gt;jdbc:postgresql://localhost:5432/XXXXX&lt;/connection-url&gt;
                  &lt;driver-class&gt;org.postgresql.Driver&lt;/driver-class&gt;
                  &lt;driver&gt;postgresql-9.4.1209.jar&lt;/driver&gt;
                  &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;10&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;100&lt;/max-pool-size&gt;
                      &lt;prefill&gt;true&lt;/prefill&gt;
                      &lt;use-strict-min&gt;false&lt;/use-strict-min&gt;
                      &lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;XXXXX&lt;/user-name&gt;
                      &lt;password&gt;XXXXX&lt;/password&gt;
                  &lt;/security&gt;
              &lt;/datasource&gt;
          &lt;/datasources&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0"&gt;
          &lt;deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:ee:4.0"&gt;
          &lt;spec-descriptor-property-replacement&gt;false&lt;/spec-descriptor-property-replacement&gt;
          &lt;concurrent&gt;
              &lt;context-services&gt;
                  &lt;context-service name="default" jndi-name="java:jboss/ee/concurrency/context/default" use-transaction-setup-provider="true"/&gt;
              &lt;/context-services&gt;
              &lt;managed-thread-factories&gt;
                  &lt;managed-thread-factory name="default" jndi-name="java:jboss/ee/concurrency/factory/default" context-service="default"/&gt;
              &lt;/managed-thread-factories&gt;
              &lt;managed-executor-services&gt;
                  &lt;managed-executor-service name="default" jndi-name="java:jboss/ee/concurrency/executor/default" context-service="default" hung-task-threshold="60000" keepalive-time="5000"/&gt;
              &lt;/managed-executor-services&gt;
              &lt;managed-scheduled-executor-services&gt;
                  &lt;managed-scheduled-executor-service name="default" jndi-name="java:jboss/ee/concurrency/scheduler/default" context-service="default" hung-task-threshold="60000" keepalive-time="3000"/&gt;
              &lt;/managed-scheduled-executor-services&gt;
          &lt;/concurrent&gt;
          &lt;default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:/XXXXXDS" jms-connection-factory="java:jboss/DefaultJMSConnectionFactory" managed-executor-service="java:jboss/ee/concurrency/executor/default" managed-scheduled-executor-service="java:jboss/ee/concurrency/scheduler/default" managed-thread-factory="java:jboss/ee/concurrency/factory/default"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:ejb3:4.0"&gt;
          &lt;session-bean&gt;
              &lt;stateless&gt;
                  &lt;bean-instance-pool-ref pool-name="slsb-strict-max-pool"/&gt;
              &lt;/stateless&gt;
              &lt;stateful default-access-timeout="5000" cache-ref="simple" passivation-disabled-cache-ref="simple"/&gt;
              &lt;singleton default-access-timeout="5000"/&gt;
          &lt;/session-bean&gt;
          &lt;mdb&gt;
              &lt;resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:activemq-ra.rar}"/&gt;
              &lt;bean-instance-pool-ref pool-name="mdb-strict-max-pool"/&gt;
          &lt;/mdb&gt;
          &lt;pools&gt;
              &lt;bean-instance-pools&gt;
                  &lt;strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/&gt;
                  &lt;strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/&gt;
              &lt;/bean-instance-pools&gt;
          &lt;/pools&gt;
          &lt;caches&gt;
              &lt;cache name="simple"/&gt;
              &lt;cache name="distributable" passivation-store-ref="infinispan" aliases="passivating clustered"/&gt;
          &lt;/caches&gt;
          &lt;passivation-stores&gt;
              &lt;passivation-store name="infinispan" cache-container="ejb" max-size="10000"/&gt;
          &lt;/passivation-stores&gt;
          &lt;async thread-pool-name="default"/&gt;
          &lt;timer-service thread-pool-name="default" default-data-store="default-file-store"&gt;
              &lt;data-stores&gt;
                  &lt;file-data-store name="default-file-store" path="timer-service-data" relative-to="jboss.server.data.dir"/&gt;
              &lt;/data-stores&gt;
          &lt;/timer-service&gt;
          &lt;remote connector-ref="http-remoting-connector" thread-pool-name="default"/&gt;
          &lt;thread-pools&gt;
              &lt;thread-pool name="default"&gt;
                  &lt;max-threads count="10"/&gt;
                  &lt;keepalive-time time="100" unit="milliseconds"/&gt;
              &lt;/thread-pool&gt;
          &lt;/thread-pools&gt;
          &lt;default-security-domain value="XXXXX-login"/&gt;
          &lt;default-missing-method-permissions-deny-access value="true"/&gt;
          &lt;log-system-exceptions value="true"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:io:1.1"&gt;
          &lt;worker name="default"/&gt;
          &lt;buffer-pool name="default"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:infinispan:4.0"&gt;
          &lt;cache-container name="server" default-cache="default" module="org.wildfly.clustering.server"&gt;
              &lt;local-cache name="default"&gt;
                  &lt;transaction mode="BATCH"/&gt;
              &lt;/local-cache&gt;
          &lt;/cache-container&gt;
          &lt;cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan"&gt;
              &lt;local-cache name="passivation"&gt;
                  &lt;locking isolation="REPEATABLE_READ"/&gt;
                  &lt;transaction mode="BATCH"/&gt;
                  &lt;file-store passivation="true" purge="false"/&gt;
              &lt;/local-cache&gt;
              &lt;local-cache name="persistent"&gt;
                  &lt;locking isolation="REPEATABLE_READ"/&gt;
                  &lt;transaction mode="BATCH"/&gt;
                  &lt;file-store passivation="false" purge="false"/&gt;
              &lt;/local-cache&gt;
              &lt;local-cache name="concurrent"&gt;
                  &lt;file-store passivation="true" purge="false"/&gt;
              &lt;/local-cache&gt;
          &lt;/cache-container&gt;
          &lt;cache-container name="ejb" aliases="sfsb" default-cache="passivation" module="org.wildfly.clustering.ejb.infinispan"&gt;
              &lt;local-cache name="passivation"&gt;
                  &lt;locking isolation="REPEATABLE_READ"/&gt;
                  &lt;transaction mode="BATCH"/&gt;
                  &lt;file-store passivation="true" purge="false"/&gt;
              &lt;/local-cache&gt;
              &lt;local-cache name="persistent"&gt;
                  &lt;locking isolation="REPEATABLE_READ"/&gt;
                  &lt;transaction mode="BATCH"/&gt;
                  &lt;file-store passivation="false" purge="false"/&gt;
              &lt;/local-cache&gt;
          &lt;/cache-container&gt;
          &lt;cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan"&gt;
              &lt;local-cache name="entity"&gt;
                  &lt;transaction mode="NON_XA"/&gt;
                  &lt;eviction strategy="LRU" max-entries="10000"/&gt;
                  &lt;expiration max-idle="100000"/&gt;
              &lt;/local-cache&gt;
              &lt;local-cache name="local-query"&gt;
                  &lt;eviction strategy="LRU" max-entries="10000"/&gt;
                  &lt;expiration max-idle="100000"/&gt;
              &lt;/local-cache&gt;
              &lt;local-cache name="timestamps"/&gt;
          &lt;/cache-container&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jca:4.0"&gt;
          &lt;archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/&gt;
          &lt;bean-validation enabled="true"/&gt;
          &lt;default-workmanager&gt;
              &lt;short-running-threads&gt;
                  &lt;core-threads count="50"/&gt;
                  &lt;queue-length count="50"/&gt;
                  &lt;max-threads count="50"/&gt;
                  &lt;keepalive-time time="10" unit="seconds"/&gt;
              &lt;/short-running-threads&gt;
              &lt;long-running-threads&gt;
                  &lt;core-threads count="50"/&gt;
                  &lt;queue-length count="50"/&gt;
                  &lt;max-threads count="50"/&gt;
                  &lt;keepalive-time time="10" unit="seconds"/&gt;
              &lt;/long-running-threads&gt;
          &lt;/default-workmanager&gt;
          &lt;cached-connection-manager/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jdr:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jmx:1.3"&gt;
          &lt;expose-resolved-model/&gt;
          &lt;expose-expression-model/&gt;
          &lt;remoting-connector/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jpa:1.1"&gt;
          &lt;jpa default-datasource="" default-extended-persistence-inheritance="DEEP"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:jsf:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:mail:2.0"&gt;
          &lt;mail-session name="default" jndi-name="java:jboss/mail/Default"&gt;
              &lt;smtp-server outbound-socket-binding-ref="mail-smtp"/&gt;
          &lt;/mail-session&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:naming:2.0"&gt;
          &lt;remote-naming/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:pojo:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:remoting:3.0"&gt;
          &lt;endpoint/&gt;
          &lt;http-connector name="http-remoting-connector" connector-ref="default" security-realm="XXXXX-system-realm"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:resource-adapters:4.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:request-controller:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:sar:1.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:security-manager:1.0"&gt;
          &lt;deployment-permissions&gt;
              &lt;maximum-set&gt;
                  &lt;permission class="java.security.AllPermission"/&gt;
              &lt;/maximum-set&gt;
          &lt;/deployment-permissions&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:security:1.2"&gt;
          &lt;security-domains&gt;
              &lt;security-domain name="XXXXX-login" cache-type="default"&gt;
                  &lt;authentication&gt;
                      &lt;login-module code="Remoting" flag="optional"&gt;
                          &lt;module-option name="password-stacking" value="useFirstPass"/&gt;
                      &lt;/login-module&gt;
                      &lt;login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required"&gt;
                          &lt;module-option name="hashAlgorithm" value="MD5"/&gt;
                          &lt;module-option name="hashEncoding" value="hex"/&gt;
                          &lt;module-option name="dsJndiName" value="java:/XXXXXDS"/&gt;
                          &lt;module-option name="principalsQuery" value="SELECT u.password AS PASSWD FROM XXXXX"/&gt;
                          &lt;module-option name="rolesQuery" value="SELECT DISTINCT f.name AS ROLEID, 'Roles' AS Roles FROM XXXXX=?"/&gt;
                          &lt;module-option name="unauthenticatedIdentity" value="guest"/&gt;
                      &lt;/login-module&gt;
                  &lt;/authentication&gt;
              &lt;/security-domain&gt;
              &lt;security-domain name="other" cache-type="default"&gt;
                  &lt;authentication&gt;
                      &lt;login-module code="Remoting" flag="optional"&gt;
                          &lt;module-option name="password-stacking" value="useFirstPass"/&gt;
                      &lt;/login-module&gt;
                      &lt;login-module code="RealmDirect" flag="required"&gt;
                          &lt;module-option name="password-stacking" value="useFirstPass"/&gt;
                      &lt;/login-module&gt;
                  &lt;/authentication&gt;
              &lt;/security-domain&gt;
              &lt;security-domain name="jboss-web-policy" cache-type="default"&gt;
                  &lt;authorization&gt;
                      &lt;policy-module code="Delegating" flag="required"/&gt;
                  &lt;/authorization&gt;
              &lt;/security-domain&gt;
              &lt;security-domain name="jboss-ejb-policy" cache-type="default"&gt;
                  &lt;authorization&gt;
                      &lt;policy-module code="Delegating" flag="required"/&gt;
                  &lt;/authorization&gt;
              &lt;/security-domain&gt;
              &lt;security-domain name="jaspitest" cache-type="default"&gt;
                  &lt;authentication-jaspi&gt;
                      &lt;login-module-stack name="dummy"&gt;
                          &lt;login-module code="Dummy" flag="optional"/&gt;
                      &lt;/login-module-stack&gt;
                      &lt;auth-module code="Dummy"/&gt;
                  &lt;/authentication-jaspi&gt;
              &lt;/security-domain&gt;
          &lt;/security-domains&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:transactions:3.0"&gt;
          &lt;core-environment&gt;
              &lt;process-id&gt;
                  &lt;uuid/&gt;
              &lt;/process-id&gt;
          &lt;/core-environment&gt;
          &lt;recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:undertow:3.1"&gt;
          &lt;buffer-cache name="default"/&gt;
          &lt;server name="default-server"&gt;
              &lt;http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/&gt;
              &lt;host name="default-host" alias="localhost"&gt;
                  &lt;location name="/" handler="welcome-content"/&gt;
                  &lt;filter-ref name="server-header"/&gt;
                  &lt;filter-ref name="x-powered-by-header"/&gt;
              &lt;/host&gt;
          &lt;/server&gt;
          &lt;servlet-container name="default"&gt;
              &lt;jsp-config/&gt;
              &lt;websockets/&gt;
          &lt;/servlet-container&gt;
          &lt;handlers&gt;
              &lt;file name="welcome-content" path="${jboss.home.dir}/welcome-content"/&gt;
          &lt;/handlers&gt;
          &lt;filters&gt;
              &lt;response-header name="server-header" header-name="Server" header-value="WildFly/10"/&gt;
              &lt;response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/&gt;
          &lt;/filters&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:webservices:2.0"&gt;
          &lt;wsdl-host&gt;${jboss.bind.address:127.0.0.1}&lt;/wsdl-host&gt;
          &lt;endpoint-config name="Standard-Endpoint-Config"/&gt;
          &lt;endpoint-config name="Recording-Endpoint-Config"&gt;
              &lt;pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM"&gt;
                  &lt;handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/&gt;
              &lt;/pre-handler-chain&gt;
          &lt;/endpoint-config&gt;
          &lt;client-config name="Standard-Client-Config"/&gt;
      &lt;/subsystem&gt;
      &lt;subsystem xmlns="urn:jboss:domain:weld:3.0"/&gt;
      &lt;subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0"&gt;
          &lt;server name="default"&gt;
              &lt;security-setting name="#"&gt;
                  &lt;role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/&gt;
              &lt;/security-setting&gt;
              &lt;address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" redelivery-delay="5000" max-delivery-attempts="3" max-size-bytes="10485760" page-size-bytes="2097152" message-counter-history-day-limit="10"/&gt;
              &lt;in-vm-connector name="in-vm" server-id="0"/&gt;
              &lt;in-vm-acceptor name="in-vm" server-id="0"/&gt;
              &lt;jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/&gt;
              &lt;jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/&gt;
              &lt;pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm" transaction="xa"/&gt;
          &lt;/server&gt;
      &lt;/subsystem&gt;
  &lt;/profile&gt;
  
  &lt;interfaces&gt;
      &lt;interface name="management"&gt;
          &lt;inet-address value="${jboss.bind.address.management:127.0.0.1}"/&gt;
      &lt;/interface&gt;
      &lt;interface name="public"&gt;
          &lt;inet-address value="${jboss.bind.address:127.0.0.1}"/&gt;
      &lt;/interface&gt;
  &lt;/interfaces&gt;
  
  &lt;socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"&gt;
      &lt;socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/&gt;
      &lt;socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/&gt;
      &lt;socket-binding name="ajp" port="${jboss.ajp.port:8009}"/&gt;
      &lt;socket-binding name="http" port="${jboss.http.port:8082}"/&gt;
      &lt;socket-binding name="https" port="${jboss.https.port:8443}"/&gt;
      &lt;socket-binding name="txn-recovery-environment" port="4712"/&gt;
      &lt;socket-binding name="txn-status-manager" port="4713"/&gt;
      &lt;outbound-socket-binding name="mail-smtp"&gt;
          &lt;remote-destination host="localhost" port="25"/&gt;
      &lt;/outbound-socket-binding&gt;
  &lt;/socket-binding-group&gt;
  </code></pre>
  
  <p></p>
  
  <p>And this is the persistence.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence&gt;
      &lt;persistence-unit name="XXX"&gt;
  
          &lt;jta-data-source&gt;java:/XXXDS&lt;/jta-data-source&gt;
          &lt;shared-cache-mode&gt;ENABLE_SELECTIVE&lt;/shared-cache-mode&gt;
          &lt;!--&lt;shared-cache-mode&gt;ALL&lt;/shared-cache-mode&gt;--&gt;
  
          &lt;class&gt;XXXXX&lt;/class&gt;
  
          &lt;properties&gt;
              &lt;property name="hibernate.show_sql" value="false"/&gt;
              &lt;property name="hibernate.format_sql" value="true"/&gt;
              &lt;property name="hibernate.use_sql_comments" value="false"/&gt;
              &lt;property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/&gt;
              &lt;property name="hibernate.id.new_generator_mappings" value="false"/&gt;
              &lt;property name="hibernate.default_batch_fetch_size" value="100"/&gt;
  
              &lt;property name="hibernate.cache.use_second_level_cache" value="true"/&gt;
  
              &lt;property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.infinispan.InfinispanRegionFactory"/&gt;
              &lt;property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.CMTTransactionFactory"/&gt;
              &lt;property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/&gt;
              &lt;property name="hibernate.cache.infinispan.entity.eviction.strategy" value="LRU"/&gt;
              &lt;property name="hibernate.cache.infinispan.entity.eviction.wake_up_interval" value="1000"/&gt;
              &lt;property name="hibernate.cache.infinispan.entity.eviction.max_entries" value="10000"/&gt;
              &lt;property name="hibernate.cache.infinispan.entity.expiration.lifespan" value="-1"/&gt;
              &lt;property name="hibernate.cache.infinispan.entity.expiration.max_idle" value="10000"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Any hints?</p>
  
  <p>Best regards,
  Manuel</p>