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
    <context:property-placeholder location="classpath*:/eu/**/application.properties" />
28
    <tx:annotation-driven transaction-manager="txManager"/>
29

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

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

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

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

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

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