How can I cluster application-scope state in wildfly?
问题 I would like to cluster a map that is kept on application-level scope. A first thought was to use a @Singleton , @Clustered bean with a field holding my data. This does not seem to work and my guess is that it was never implemented This post proposes ways to implement clustered singletons but they seem complex. The only alternative that I see, apart from manually updating db table(s), is to use a replicated cache. My question is: Is it advised to declare and use an infinispan cache (like this