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

    
12
    <!--<import resource="classpath:META-INF/cxf/cxf.xml"/>
13
    <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
14
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
15
    <import resource="classpath*:/cxf.xml"/>
16
    <import resource="classpath*:/eu/dnetlib/repos/ehcacher/springContext-repos-ehcacher.xml"/>
17
    <import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
18
    <import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
19
    <import resource="classpath*:/eu/dnetlib/users/springContext-users-ldap.xml"/>
20
    <import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
21
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
22
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
23
    <import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
24
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
25
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml"/>
26
    <import resource="classpath*:/eu/dnetlib/repos/springContext-repos-dms-cached.xml"/>-->
27
    
28
    <context:property-placeholder location="classpath*:/eu/**/application.properties" />
29
    <tx:annotation-driven transaction-manager="txManager"/>
30

    
31
    <bean class="eu.dnetlib.repo.manager.service.config.CascadingPropertyLoader" id="propertyLoader">
32
        <property name="order" value="2" />
33
        <property name="properties">
34
            <bean class="eu.dnetlib.conf.WebappContextProperyFactory">
35
                <property name="propertyFetcher">
36
                    <bean class="eu.dnetlib.conf.PropertyFetcher" />
37
                </property>
38
            </bean>
39
        </property>
40
        <property name="ignoreUnresolvablePlaceholders" value="true" />
41
        <property name="locations">
42
            <list>
43
                <value>classpath*:/gr/**/springContext-*.properties</value>
44
                <value>classpath*:/eu/**/springContext-*.properties</value>
45

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

    
48
                <value>classpath*:dnet-site-wizard.properties</value>
49
                <value>classpath*:dnet-site-override.properties</value>
50
                <value>classpath*:dnet-wizard.properties</value>
51
                <value>classpath*:dnet-override.properties</value>
52
                <value>classpath*:dnet-validator-wizard.properties</value>
53
                <value>classpath*:dnet-validator-override.properties</value>
54
                <value>classpath*:dnet-site-force-override.properties</value>
55
                <value>classpath*:dnet-force-override.properties</value>
56
            </list>
57
        </property>
58
    </bean>
59

    
60
    <bean id="repomanager.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
61
        <property name="driverClassName" value="${repomanager.db.driverClassName}" />
62
        <property name="url" value="${repomanager.db.url}" />
63
        <property name="username" value="${repomanager.db.username}" />
64
        <property name="password" value="${repomanager.db.password}" />
65
        <property name="maxIdle" value="10" />
66
        <property name="maxActive" value="100" />
67
        <property name="maxWait" value="10000" />
68
        <property name="validationQuery" value="SELECT 1;" />
69
        <property name="testOnBorrow" value="true" />
70
        <property name="testOnReturn" value="true" />
71
        <property name="testWhileIdle" value="true" />
72
        <property name="timeBetweenEvictionRunsMillis" value="1200000" />
73
        <property name="minEvictableIdleTimeMillis" value="1800000" />
74
        <property name="numTestsPerEvictionRun" value="5" />
75
        <property name="poolPreparedStatements" value="true" />
76
        <property name="defaultAutoCommit" value="true" />
77
    </bean>
78

    
79
    <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
80
        <property name="dataSource" ref="repomanager.dataSource"/>
81
    </bean>
82

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