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" xmlns:
tx=
"http://www.springframework.org/schema/tx"
4 xmlns:
context=
"http://www.springframework.org/schema/context"
5 xsi:
schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
7 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
12 For a detailed overview on the spring MVC and application context configuration and
13 bootstrapping of this web application see:
14 http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping
17 <!-- include default application context and customization -->
18 <import resource=
"classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml" />
19 <bean id=
"persistentTermInitializer" class=
"eu.etaxonomy.cdm.database.PersistentTermInitializer">
20 <property name=
"omit" value=
"false" />
22 <context:component-scan base-package=
"eu/etaxonomy/cdm/ext" />
24 <!-- <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/> -->
25 <import resource=
"classpath:/eu/etaxonomy/cdm/remote-security.xml" />
26 <context:component-scan base-package=
"eu/etaxonomy/cdm/io">
27 <context:exclude-filter type=
"regex"
28 expression=
"eu\.etaxonomy\.cdm\.io\.pesi.*" />
29 <context:exclude-filter type=
"regex"
30 expression=
"eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
31 <context:exclude-filter type=
"regex"
32 expression=
"eu\.etaxonomy\.cdm\.io\.erms.*" />
33 <context:exclude-filter type=
"regex"
34 expression=
"eu\.etaxonomy\.cdm\.io\.eflora.*" />
35 <context:exclude-filter type=
"regex"
36 expression=
"eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
37 </context:component-scan>
40 class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
41 <property name=
"properties">
43 <prop key=
"eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/
</prop>
44 <prop key=
"eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/
</prop>
49 <!-- enable the configuration of transactional behavior based on annotations -->
50 <tx:annotation-driven transaction-manager=
"transactionManager" />
52 <!-- import additional beans into the root context -->
53 <import resource=
"applicationContext.views.xml" />
55 <!-- CONFIGURE WEB APPLICATION HERE -->
56 <import resource=
"datasources/configurable.xml" />
58 <context:annotation-config />
59 <bean class=
"eu.etaxonomy.cdm.remote.config.LoggingConfigurer">
62 <!-- OAI-PMH TODO externalize? -->
63 <bean name=
"taxonOaiPmhController"
64 class=
"eu.etaxonomy.cdm.remote.controller.oaipmh.TaxonOaiPmhController">
65 <property name=
"cachingModel" ref=
"taxonOaiPmhCacheMapping" />
68 <bean name=
"taxonOaiPmhCacheMapping"
69 class=
"org.springmodules.cache.provider.ehcache.EhCacheCachingModel">
70 <property name=
"cacheName"
71 value=
"eu.etaxonomy.cdm.remote.controller.TaxonOaiPmhController.resumptionToken" />
73 <bean id=
"cacheManager"
74 class=
"org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
75 <property name=
"configLocation"
76 value=
"classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
77 <property name=
"shared" value=
"true" />
80 <bean id=
"serializableFactory"
81 class=
"org.springmodules.cache.serializable.XStreamSerializableFactory" />
83 <bean id=
"cacheProviderFacade" class=
"org.springmodules.cache.provider.ehcache.EhCacheFacade">
84 <property name=
"cacheManager" ref=
"cacheManager" />
85 <property name=
"serializableFactory" ref=
"serializableFactory" />