use of org.apache.camel.component.cache.FileCacheManagerFactory in project camel by apache.
the class BaseCacheTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// use a file cache manager factory to load out test configuration
cache = new CacheComponent();
cache.setCacheManagerFactory(new FileCacheManagerFactory("src/test/resources/test-ehcache.xml"));
jndi.bind("cache", cache);
return jndi;
}
Aggregations