We are trying to figure out the best way to implement the following (using WildFly):
1. We have multiple applications (5 or more) all of which require their own clustered invalidation cache
2. Should we have a single cache manager defined in WildFly configuration that is shared by all the applications?
3. Should we have multiple cache managers (one per application) created programmatically? What is the overhead of this?
4. What happens in a clustered cache when you redeploy an application? We have seen issues with cache entries causing exceptions on redeploy (class cast exception).
Appreciate anyone who can shed some light on these!