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 http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
6
		    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
    <import resource="classpath*:/eu/**/aai-security.xml"/>
9

    
10
    <context:property-placeholder location="classpath*:/eu/**/application.properties" />
11
    <tx:annotation-driven transaction-manager="txManager"/>
12

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

    
28
                <value>classpath*:/eu/dnetlib/repo/manager/service/email-texts.properties</value>
29

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

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

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

    
65
</beans>
    (1-1/1)