I am trying to set up a Wildfly cluster with HA. I set the <distributable/> option in my web.xml but now all my AJAX calls are single threaded. Also, if an AJAX call exceeds some timeout in infinispan, because it it waiting for another call to finish and error is thrown I tried to use asynchronous servlets, but this fails because of
https://github.com/wildfly/wildfly/pull/6579
Can Wildfly support multiple AJAX calls with sessions?
I found this discussion here:
Distributed sessions and batching
Setting the cache to OPTIMISTIC as described seems to work. This seems to work with both asynchronous and synchronous servlets.