1 |
ead0a1ab
|
Cherian Mathew
|
<?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 |
e6b01164
|
Andreas Kohlbecker
|
<!--
|
12 |
|
|
NOTE:
|
13 |
|
|
For a detailed overview on the spring MVC and application context configuration and
|
14 |
|
|
bootstrapping of this web application see:
|
15 |
|
|
http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping
|
16 |
|
|
-->
|
17 |
fd9cf932
|
Andreas Kohlbecker
|
|
18 |
e6b01164
|
Andreas Kohlbecker
|
<context:annotation-config />
|
19 |
|
|
|
20 |
|
|
<!--
|
21 |
|
|
find the eu.etaxonomy.cdm.remote.config.CdmVaadinConfiguration
|
22 |
|
|
-->
|
23 |
|
|
<context:component-scan base-package="eu/etaxonomy/cdm/addon/config" />
|
24 |
fd9cf932
|
Andreas Kohlbecker
|
|
25 |
ead0a1ab
|
Cherian Mathew
|
<!-- include default application context and customization -->
|
26 |
e6b01164
|
Andreas Kohlbecker
|
<import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
|
27 |
|
|
|
28 |
|
|
<bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
|
29 |
ead0a1ab
|
Cherian Mathew
|
<property name="omit" value="false" />
|
30 |
e6b01164
|
Andreas Kohlbecker
|
</bean>
|
31 |
ead0a1ab
|
Cherian Mathew
|
<context:component-scan base-package="eu/etaxonomy/cdm/ext" />
|
32 |
|
|
|
33 |
e6b01164
|
Andreas Kohlbecker
|
<import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
|
34 |
ead0a1ab
|
Cherian Mathew
|
<context:component-scan base-package="eu/etaxonomy/cdm/io">
|
35 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
|
36 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.faunaEuropaea.*" />
|
37 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.erms.*" />
|
38 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.eflora.*" />
|
39 |
|
|
<context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.berlinModel.*" />
|
40 |
|
|
</context:component-scan>
|
41 |
|
|
|
42 |
|
|
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
43 |
|
|
<property name="properties">
|
44 |
|
|
<props>
|
45 |
|
|
<prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
|
46 |
|
|
<prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
|
47 |
|
|
</props>
|
48 |
|
|
</property>
|
49 |
|
|
</bean>
|
50 |
|
|
|
51 |
|
|
<!-- enable the configuration of transactional behavior based on annotations -->
|
52 |
e6b01164
|
Andreas Kohlbecker
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
53 |
|
|
|
54 |
|
|
<!-- import additional beans into the root context (this is in cdmlib-remote-webapp) -->
|
55 |
|
|
<!-- <import resource="applicationContext.views.xml" /> -->
|
56 |
|
|
|
57 |
fd9cf932
|
Andreas Kohlbecker
|
<!-- import configuration of the datasource bean -->
|
58 |
ead0a1ab
|
Cherian Mathew
|
<import resource="datasources/configurable.xml" />
|
59 |
15911e5d
|
Andreas Kohlbecker
|
|
60 |
e6b01164
|
Andreas Kohlbecker
|
<!-- bootstrap the Web Configuration -->
|
61 |
|
|
<bean class="eu.etaxonomy.cdm.remote.config.MultiWebSecurityConfiguration" />
|
62 |
|
|
|
63 |
|
|
<bean class="eu.etaxonomy.cdm.opt.config.LoggingConfigurer" />
|
64 |
|
|
|
65 |
|
|
<bean class="eu.etaxonomy.cdm.opt.config.EhCacheDiskStoreConfiguration" />
|
66 |
0fd8512c
|
Andreas Kohlbecker
|
|
67 |
e6b01164
|
Andreas Kohlbecker
|
<bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory" />
|
68 |
ead0a1ab
|
Cherian Mathew
|
|
69 |
e6b01164
|
Andreas Kohlbecker
|
<bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
|
70 |
|
|
<!--
|
71 |
|
|
the cacheManager is provided by the eu.etaxonomy.cdm.api.config.EhCacheConfiguration
|
72 |
|
|
in cdmlib-services
|
73 |
|
|
-->
|
74 |
|
|
<property name="cacheManager" ref="cacheManager" />
|
75 |
|
|
<property name="serializableFactory" ref="serializableFactory"/>
|
76 |
|
|
</bean>
|
77 |
ead0a1ab
|
Cherian Mathew
|
|
78 |
|
|
</beans>
|