This is example of ehcacheprovider private CacheManager Cmanager; //here config = ehcache.xml public EhCacheProvider(String config) throws CacheException { CacheManager.create(); //initialize cache manager by passing configuration xml file path m_ObjCacheManager = Cmanager.newInstance(config);
} and we can call this method using icahceprovider interface CacheManager iCacheManager = null; ICacheProvider iCacheProvider = null; iCacheManager = CacheManager.getInstance(); iCacheProvider = iCacheManager.getcacheProvider(); but the same way as i am doing for ignite it shows error in this org.apache.ignite.cache.CacheManager.getInstance(); as it is not the method but how can i create an instance so that it can be used as singleton class to call provider and work in multiple classes by creating its instance. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/how-to-create-instance-of-CacheManager-of-ignite-tp2876.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.