<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:util="http://www.springframework.org/schema/util" xmlns:cache="http://www.springframework.org/schema/cache"
	xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:template="http://dnetlib.eu/springbeans/template"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
	http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
	http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

	<!-- THIS FILE MUST CONTAIN THE CACHEMANAGER DECALRES IN DEPENDENCY MODULES 
		THAT MUST BE USED BY THE CONTAINER BECAUSE WE CANNOT HAVE MULTIPLE <cache:annotation-driven> 
		IN DIFFERENT MODULES. -->
		
		<cache:annotation-driven cache-manager="mincytCacheManager" />
		
		<!-- ADD TO THE ARRAY OF CACHE MANAGERS THE CACHE MANAGER DEFINED IN MODULES" APPLICATION CONTEXTS -->
		<bean id="mincytCacheManager" class="org.springframework.cache.support.CompositeCacheManager">
    		<property name="cacheManagers">
        		<array>
            	<!--  	<ref bean="vocabularyCacheManager" /> -->
           	 		<ref bean="theOAICacheManager" />
           	 		<ref bean="oaiUtilsCacheManager" />
        		</array>
    		</property>
    		<property name="fallbackToNoOpCache" value="true" />
		</bean>
</beans>