1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <beans xmlns=
"http://www.springframework.org/schema/beans"
3 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:
tx=
"http://www.springframework.org/schema/tx"
5 xmlns:
context=
"http://www.springframework.org/schema/context"
6 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
11 <!-- include default application context and customization -->
12 <import resource=
"classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
13 <bean id=
"persistentTermInitializer" class=
"eu.etaxonomy.cdm.database.PersistentTermInitializer">
14 <property name=
"omit" value=
"false" />
16 <context:component-scan base-package=
"eu/etaxonomy/cdm/ext" />
18 <import resource=
"classpath:/eu/etaxonomy/cdm/remote.xml"/>
20 <bean class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
21 <property name=
"properties">
23 <prop key=
"eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/
</prop>
24 <prop key=
"eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/
</prop>
25 <prop key=
"eu.etaxonomy.cdm.ehcache.diskstore.path">${user.home}/.cdmLibrary/ehcache
</prop>
30 <!-- enable the configuration of transactional behavior based on annotations -->
31 <tx:annotation-driven transaction-manager=
"transactionManager"/>
33 <!-- import additional beans into the root context -->
34 <import resource=
"applicationContext.views.xml"/>
36 <!-- CONFIGURE WEB APPLICATION HERE -->
37 <import resource=
"datasources/configurable.xml" />
39 <context:annotation-config/>
40 <bean class=
"eu.etaxonomy.cdm.remote.config.LoggingConfigurer">
43 <!-- OAI-PMH TODO externalize? -->
44 <bean name=
"taxonOaiPmhController" class=
"eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
45 <property name=
"cachingModel" ref=
"taxonOaiPmhCacheMapping"/>
48 <bean name=
"taxonOaiPmhCacheMapping" class=
"org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
49 <property name=
"cacheName" value=
"eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken"/>
51 <bean id=
"cacheManager" class=
"org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
52 <property name=
"configLocation" value=
"classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
53 <property name=
"shared" value=
"true"/>
56 <bean id=
"serializableFactory" class=
"org.springmodules.cache.serializable.XStreamSerializableFactory"/>
58 <bean id=
"cacheProviderFacade" class=
"org.springmodules.cache.provider.ehcache.EhCacheFacade">
59 <property name=
"cacheManager" ref=
"cacheManager" />
60 <property name=
"serializableFactory" ref=
"serializableFactory"/>