Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote / src / test / resources / applicationContext.xml @ d6e64fe7

History | View | Annotate | Download (2.37 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-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
    <import resource="classpath:/eu/etaxonomy/cdm/services.xml"/>
12
<!--
13
     <import resource="classpath:/eu/etaxonomy/cdm/defaultSecurityContext.xml"/>
14
     <import resource="classpath:/eu/etaxonomy/cdm/spelling.xml"/>
15
 -->
16

    
17
    <!-- Overwrites two component-scans in services.xml -->
18
    <context:component-scan base-package="eu/etaxonomy/cdm/api/service">
19
      <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.api\.service\.UserService"/>
20
    </context:component-scan>
21

    
22
    <context:component-scan base-package="eu/etaxonomy/cdm/persistence">
23
      <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.persistence\.dao\.hibernate\.taxon\.TaxonAlternativeSpellingSuggestionParser"/>
24
    </context:component-scan>
25

    
26
    <!-- enable the configuration of transactional behavior based on annotations -->
27
    <tx:annotation-driven transaction-manager="transactionManager"/>
28

    
29
   <import resource="classpath:/eu/etaxonomy/cdm/h2-datasource.xml" />
30

    
31
    <!-- This configures default properties, which can overridden with the file specified by the location property -->
32
    <!-- uncomment to enable hql logging:
33
    <bean id="hibernateProperties"
34
        class="org.springframework.beans.factory.config.PropertiesFactoryBean">
35
        <property name="properties">
36
            <props>
37
                <prop key="hibernate.hbm2ddl.auto">create</prop>
38
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
39
                <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
40
                <prop key="hibernate.show_sql">true</prop>
41
                <prop key="hibernate.format_sql">true</prop>
42
            </props>
43
        </property>
44
    </bean>
45
    -->
46

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