Description:
|
If I want to use 2 different L2 cache providers (in my case, Hazelcast and Infinispan), the org.hibernate.cfg.AnnotationBinder class initializes its DEFAULT_CACHE_CONCURRENCY_STRATEGY with the default strategy of one of them and calls it a day. The problem is, that each one does not support the default strategy of the other, resulting in
"org.hibernate.cache.CacheException: Transactional access is not currently supported by Hazelcast." or "Bla-bla-bla, Infinispan doesn't like the read-write strategy".
Of course, I can explicitly specify my access strategy on a per-entity basis, but it would be nice if this worked out of the box.
|