My entities are marked with
@Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL)
and the application runs (not sure how to verify entities are actually cached).
Hibernate config within spring context:
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop>
Now if a change the cache from ehcache to infinispan I get an exception stating that this is a transactional cache but no transaction manager was found.
Therefore my question: Is the ehcache actually transactional?
As of release 2.1 Ehcache has support for transactional caches… But you do realize that (any) transactional cache with Hibernate requires a full blown JTA environment ?