Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdm-vaadin / src / test / resources / webapp / WEB-INF / applicationContext-alternative.xml @ 716825dd

History | View | Annotate | Download (2.63 KB)

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-3.0.xsd
7
    http://www.springframework.org/schema/context   http://www.springframework.org/schema/context/spring-context-3.0.xsd
8
    http://www.springframework.org/schema/tx   http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
9
    ">
10

    
11
  <!-- 
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
   
18
   <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
    
25
   <!-- include default application context and customization -->
26
   <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
27
   
28
   <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
29
   
30
   <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
31
       <property name="omit" value="true" />
32
   </bean>
33
   <context:component-scan base-package="eu/etaxonomy/cdm/ext" />
34

    
35
  <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
36
  <!--   <context:component-scan base-package="eu/etaxonomy/cdm/io"/> -->
37
 
38
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
39
      <property name="properties">
40
        <props>
41
            <prop key="eu.etaxonomy.cdm.base.path">${user.home}/.cdmLibrary/</prop>
42
            <prop key="eu.etaxonomy.cdm.search.index.path">${user.home}/.cdmLibrary/index/</prop>
43
        </props>
44
          </property>
45
    </bean>
46

    
47
    <!-- enable the configuration of transactional behavior based on annotations -->
48
    <tx:annotation-driven transaction-manager="transactionManager"/>
49
    
50
    <import resource="classpath:/eu/etaxonomy/cdm/applicationContext-test.common.xml" />
51
    
52
    <bean id="termInitializer" class="eu.etaxonomy.cdm.database.TestingTermInitializer">
53
        <property name="termsDataSet" value="classpath:/eu/etaxonomy/cdm/database/TermsDataSet-ui-registration-with_auditing_info.xml"/> 
54
        <property name="termsDtd" value="classpath:/eu/etaxonomy/cdm/database/schema/dataset.dtd"/>
55
    </bean>
56
    
57
</beans>
Add picture from clipboard (Maximum size: 40 MB)