automatic schema update done by configuring the localsessionfactory for
[utils] / support / src / main / java / org / wamblee / cache / EhCache.java
index 0dcb2b7a2fcf3907b8d24e60ed363d64b91c9bcf..ffbbab4baf850ebcfa0a7e4d13594e4f9bb35870 100644 (file)
@@ -24,6 +24,8 @@ import net.sf.ehcache.Cache;
 import net.sf.ehcache.CacheException;
 import net.sf.ehcache.CacheManager;
 import net.sf.ehcache.Element;
+import net.sf.ehcache.config.Configuration;
+import net.sf.ehcache.config.ConfigurationFactory;
 
 import org.apache.log4j.Logger;
 import org.wamblee.io.InputResource;
@@ -61,7 +63,7 @@ public class EhCache<KeyType extends Serializable, ValueType extends Serializabl
             throws IOException, CacheException {
         InputStream is = aResource.getInputStream();
         try {
-            _manager = CacheManager.create(is);
+               _manager = new CacheManager(is);
             _cache = _manager.getCache(aCacheName);
             if (_cache == null) {
                 LOGGER.warn("Creating cache '" + aCacheName