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
|
9
|
">
|
10
|
|
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" />
|
15
|
</bean>
|
16
|
<context:component-scan base-package="eu/etaxonomy/cdm/ext" />
|
17
|
<context:component-scan base-package="eu/etaxonomy/cdm/remote/vaadin" />
|
18
|
|
19
|
<!--
|
20
|
<import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
|
21
|
-->
|
22
|
<!-- <import resource="classpath:/eu/etaxonomy/cdm/remote-security.xml"/> -->
|
23
|
<context:component-scan base-package="eu/etaxonomy/cdm/io">
|
24
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
|
25
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
|
26
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
|
27
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
|
28
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
|
29
|
</context:component-scan>
|
30
|
|
31
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
32
|
<property name="properties">
|
33
|
<props>
|
34
|
<prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
|
35
|
<prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
|
36
|
</props>
|
37
|
</property>
|
38
|
</bean>
|
39
|
|
40
|
<!-- enable the configuration of transactional behavior based on annotations -->
|
41
|
<tx:annotation-driven transaction-manager="transactionManager"/>
|
42
|
|
43
|
<!-- import additional beans into the root context -->
|
44
|
<!-- <import resource="applicationContext.views.xml"/> -->
|
45
|
|
46
|
<!-- CONFIGURE WEB APPLICATION HERE -->
|
47
|
<import resource="datasources/configurable.xml" />
|
48
|
|
49
|
<context:annotation-config/>
|
50
|
<bean class="eu.etaxonomy.cdm.remote.config.LoggingConfigurer">
|
51
|
</bean>
|
52
|
|
53
|
|
54
|
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
|
55
|
<property name="configLocation" value="classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
|
56
|
<property name="shared" value="true"/>
|
57
|
</bean>
|
58
|
|
59
|
<bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory"/>
|
60
|
|
61
|
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
|
62
|
<property name="cacheManager" ref="cacheManager" />
|
63
|
<property name="serializableFactory" ref="serializableFactory"/>
|
64
|
</bean>
|
65
|
|
66
|
</beans>
|