super(mgr, maxCacheSize);
init();
}
public void init() throws CacheException { //TODO get these props from jcs.properties or server.properties
CompositeCacheManager ccm = CompositeCacheManager.getUnconfiguredInstance();
Properties props = new Properties();
//props.load(/* load properties from some location defined by your app */);
props.put("jcs.default","");
props.put("jcs.default.cacheattributes","org.apache.jcs.engine.CompositeCacheAttributes");
props.put("jcs.default.cacheattributes.MemoryCacheName","org.apache.jcs.engine.memory.lru.LRUMemoryCache");
props.put("jcs.default.cacheattributes.MaxObjects",mMaxCacheSize);
ccm.configure(props);
termCache = JCS.getInstance("termCache");
IElementAttributes attributes = termCache.getDefaultElementAttributes();
//attributes.setIsEternal( true );
attributes.setSize(5000);