Project

General

Profile

« Previous | Next » 

Revision 54392

Logs and bean for cache manager

View differences:

modules/dnet-directindex-api/branches/solr75/src/main/java/eu/dnetlib/openaire/directindex/api/IndexDSRetriever.java
30 30

  
31 31
	@Cacheable("indexDsInfo")
32 32
	public List<IndexDsInfo> calculateCurrentIndexDsInfo() throws IOException, ISLookUpException {
33

  
34
		log.info("Not using cache");
33 35
		final List<IndexDsInfo> list = Lists.newArrayList();
34 36

  
35 37
		final String queryUrl = IOUtils.toString(findSolrIndexUrl.getInputStream());
modules/dnet-directindex-api/branches/solr75/src/main/resources/eu/dnetlib/openaire/directindex/applicationContext-api.xml
45 45

  
46 46
	<bean id="indexDSRetriever" class="eu.dnetlib.openaire.directindex.api.IndexDSRetriever" />
47 47

  
48
	<bean id="directIndexCacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager"
49
	      p:cacheManager-ref="directIndexCache" />
50

  
51
	<bean id="directIndexCache"
52
	      class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"
53
	      p:cacheManagerName="directIndexCache"
54
	      p:configLocation="classpath:/eu/dnetlib/openaire/directindex/api/ehcache.xml" />
55

  
48 56
</beans>

Also available in: Unified diff