Project

General

Profile

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" xmlns:tx="http://www.springframework.org/schema/tx"
5
       xsi:schemaLocation="http://www.springframework.org/schema/beans
6
               http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
7

    
8

    
9
    <context:annotation-config/>
10
    <context:component-scan base-package="eu.dnetlib.repo.manager.service.*"/>
11
    <tx:annotation-driven transaction-manager="txManager"/>
12

    
13
    <bean class="eu.dnetlib.repo.manager.config.CascadingPropertyLoader"
14
          id="propertyLoader">
15
        <property name="order" value="2"/>
16
        <property name="properties">
17
            <bean class="eu.dnetlib.conf.WebappContextProperyFactory">
18
                <property name="propertyFetcher">
19
                    <bean class="eu.dnetlib.conf.PropertyFetcher"/>
20
                </property>
21
            </bean>
22
        </property>
23
        <property name="ignoreUnresolvablePlaceholders" value="true"/>
24
        <property name="locations">
25
            <list>
26
                <value>classpath*:/gr/**/springContext-*.properties</value>
27
                <value>classpath*:/eu/**/springContext-*.properties</value>
28

    
29
                <value>classpath*:/application.properties</value>
30
                <value>classpath*:email-texts.properties</value>
31

    
32
<!--                <value>classpath*:dnet-site-wizard.properties</value>-->
33
<!--                <value>classpath*:dnet-site-override.properties</value>-->
34
<!--                <value>classpath*:dnet-wizard.properties</value>-->
35
<!--                <value>classpath*:dnet-override.properties</value>-->
36
<!--                <value>classpath*:dnet-validator-wizard.properties</value>-->
37
<!--                <value>classpath*:dnet-validator-override.properties</value>-->
38
<!--                <value>classpath*:dnet-site-force-override.properties</value>-->
39
<!--                <value>classpath*:dnet-force-override.properties</value>-->
40
            </list>
41
        </property>
42
    </bean>
43

    
44
    <bean id="repomanager.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
45
        <property name="driverClassName" value="${repomanager.db.driverClassName}" />
46
        <property name="url" value="${repomanager.db.url}" />
47
        <property name="username" value="${repomanager.db.username}" />
48
        <property name="password" value="${repomanager.db.password}" />
49
        <property name="maxIdle" value="10" />
50
        <property name="maxActive" value="100" />
51
        <property name="maxWait" value="10000" />
52
        <property name="validationQuery" value="SELECT 1;" />
53
        <property name="testOnBorrow" value="true" />
54
        <property name="testOnReturn" value="true" />
55
        <property name="testWhileIdle" value="true" />
56
        <property name="timeBetweenEvictionRunsMillis" value="1200000" />
57
        <property name="minEvictableIdleTimeMillis" value="1800000" />
58
        <property name="numTestsPerEvictionRun" value="5" />
59
        <property name="poolPreparedStatements" value="true" />
60
        <property name="defaultAutoCommit" value="true" />
61
    </bean>
62

    
63
    <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
64
        <property name="dataSource" ref="repomanager.dataSource"/>
65
    </bean>
66

    
67
</beans>
(1-1/3)