Hi All, We use JbossCache for application and hibernate 2nd Level cache. We are migrating from JbossCache to Infinispan. Below is the configuration for infinispan. We use replication sync cache for sessions, invalidation cache for configurations and hibernate2LC. In JBossCache we were using new SharedCacheInstanceManager(cacheManager.getCache("Hibernate2LC") to JBossCacheRegionFactory. With the InfinispanRegionFactory, the above option is no more and only takes a cache manager. Does, this mean I need configure separate cache manage for Hibernate 2 level cache? we will have 2 infinispan XMLs 1) application cache and 2) Hibernate L2 cache configurations? In that case we will end up with using 2 cache managers, can you please let me know if this is correct? Appreciate your help n this.
You don't need two cache managers; if you want to use your own cache manager, override InfinispanRegionFactory#createCacheManager and return your own. Please study carefully the default configuration file and merge it into your configuration (which needs other cache definitions for the sessions etc.).