As far as I can see, you will need to provide an implementation of CacheErrorHandler ( javadoc ).
You can do this by providing a Configuration instance that implements CachingConfigurer and overriding the errorHandler() method.
For instance:
@Configuration @Ena1bleCaching public class MyApp extends SpringBootServletInitializer implements CachingConfigurer { @Override public CacheErrorHandler errorHandler() { return MyAppCacheErrorHandler(); } }
It’s not clear to HOW you provide a continuous service — without duplicating current sessions in the rollback cache, this seems impossible.
If you use ElasticCache, is it not possible for AWS to handle the replicated configuration for you, so if one node goes, the other can take over?
source share