Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-ext / src / test / resources / eu / etaxonomy / cdm / applicationContext-test.xml @ 54b39f00

History | View | Annotate | Download (3.47 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:context="http://www.springframework.org/schema/context"
5
        xsi:schemaLocation="http://www.springframework.org/schema/beans
6
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7
    http://www.springframework.org/schema/context
8
    http://www.springframework.org/schema/context/spring-context-3.0.xsd">
9

    
10
    <import resource="classpath:/eu/etaxonomy/cdm/defaultApplicationContext.xml"/>
11

    
12
        <context:component-scan base-package="eu/etaxonomy/cdm/ext"/>
13

    
14
    <bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
15

    
16
    <!--
17
    <bean id="testingTermInitializer" class="eu.etaxonomy.cdm.database.TestingTermInitializer">
18
            TermsDataSet-with_auditing_info.cdmlib-services.xml has different IDs than TermsDataSet-with_auditing_info.xml
19
            which is used in persistence !!
20
        <property name="termsDataSet" value="classpath:/eu/etaxonomy/cdm/database/TermsDataSet-with_auditing_info.cdmlib-services.xml"/>
21
        <property name="termsDtd" value="classpath:/eu/etaxonomy/cdm/persistence/dao/hibernate/dataset.dtd"/>
22
        <property name="omit" value="false"/>
23
    </bean>
24
    <bean id="persistentTermInitializer" class="eu.etaxonomy.cdm.database.PersistentTermInitializer">
25
        <property name="omit" value="true"/>
26
    </bean>
27
    -->
28

    
29
     <bean id="hibernateProperties"
30
            class="org.springframework.beans.factory.config.PropertiesFactoryBean">
31
            <property name="properties">
32
                <props>
33
                    <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
34
                    <prop key="hibernate.show_sql">false</prop>
35
                    <prop key="hibernate.format_sql">false</prop>
36
                    <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.impl.FSDirectoryProvider</prop>
37
                    <!-- TODO trying to use a managed session context
38
                    <prop key="hibernate.current_session_context_class">managed</prop>
39
                    -->
40
                    <prop key="hibernate.search.default.indexBase">./target/index</prop>
41
                    <!--  hibernate.search.default.exclusive_index_use=false
42
                          locks must not only be released after application shutdown in test environment -->
43
                    <prop key="hibernate.search.default.exclusive_index_use">false</prop>
44
                    <!-- hsqldb v. <1.9 has a bug (http://sourceforge.net/tracker/?func=detail&atid=378131&aid=1407528&group_id=23316)
45
                        due to which it is not possible to use batch updates, so we need to disable
46
                        hibernate batching when using hsqldb in the app context: -->
47
                    <prop key="hibernate.jdbc.batch_size">0</prop>
48
                </props>
49
            </property>
50
    </bean>
51

    
52

    
53
   <!--
54
    We do not use old springmodules spelling module anymore. See persistence spelling.xml comments for details.
55
    Try to work with modern annotationbased spelling instead.
56

57
    <bean id="taxonSpellingDirectory" class="org.springmodules.lucene.index.support.FSDirectoryFactoryBean">
58
      <property name="location" value="file:./target/index/eu.etaxonomy.cdm.model.taxon.TaxonBase_spelling"/>
59
      <property name="create" value="true"/>
60
    </bean> -->
61

    
62
</beans>
Add picture from clipboard (Maximum size: 40 MB)