enserver.j2ee.22.source-code.jsr107cache-context.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" xmlns:cache="http://www.springframework.org/schema/cache"> <bean id="cacheName" class="java.lang.String"> <constructor-arg type="java.lang.String" value="fifoCache" /> </bean> <bean id="ehManager" class="net.sf.ehcache.CacheManager" destroy-method="shutdown"> <constructor-arg index="0" type="java.net.URL" value="classpath:/ehcache.xml" /> </bean> <bean id="ehCacheFactory" class="com.wadpam.open.cache.EhCacheFactory" /> <bean id="cacheManager" class="net.sf.jsr107cache.CacheManager"> <constructor-arg ref="ehCacheFactory" /> </bean> </beans>