4 Replies Latest reply on May 27, 2016 12:21 AM by Mark Haller

    How to get CacheManager Instance in Hibernate

    Ganesh Shirsat Newbie

      Hi all,


      Our application in currently using the EHCache. we are planning to migrate from EHCache to Infinispan cache.

      EHCache has provider like SingletonEhCacheProvider using this we sure that there is always only one CacheManager for whole application.


      how to get the singleton CacheManger in infinispan?


      for example


      EHcache :

           ehcahce provider : net.sf.ehcache.hibernate.SingletonEhCacheProvider

      CacheManager Instance:


      CacheManger cacheManager = CacheManager.getInstance();


      using that we can get the cacheManager Object.



      Ganesh Shirsat