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
       xmlns:mvc="http://www.springframework.org/schema/mvc"
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
    http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
12

    
13
    <import resource="classpath*:/application-context.xml"/>
14

    
15
    <!-- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>-->
16

    
17
    <!--<import resource="classpath:META-INF/cxf/cxf.xml"/>
18
    <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
19
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
20
    <import resource="classpath*:/cxf.xml"/>
21
    <import resource="classpath*:/eu/dnetlib/repos/ehcacher/springContext-repos-ehcacher.xml"/>
22
    <import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
23
    <import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
24
    <import resource="classpath*:/eu/dnetlib/users/springContext-users-ldap.xml"/>
25
    <import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
26
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
27
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
28
    <import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
29
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
30
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml"/>
31
    <import resource="classpath*:/eu/dnetlib/repos/springContext-repos-dms-cached.xml"/>-->
32

    
33

    
34
    <context:property-placeholder location="classpath*:/eu/**/application.properties" />
35

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

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

    
53
                <value>classpath*:dnet-site-wizard.properties</value>
54
                <value>classpath*:dnet-site-override.properties</value>
55
                <value>classpath*:dnet-wizard.properties</value>
56
                <value>classpath*:dnet-override.properties</value>
57
                <value>classpath*:dnet-validator-wizard.properties</value>
58
                <value>classpath*:dnet-validator-override.properties</value>
59
                <value>classpath*:dnet-site-force-override.properties</value>
60
                <value>classpath*:dnet-force-override.properties</value>
61
            </list>
62
        </property>
63
    </bean>
64

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

    
84
    <tx:annotation-driven transaction-manager="txManager"/>
85

    
86
    <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
87
        <property name="dataSource" ref="repomanager.dataSource"/>
88
    </bean>
89

    
90
    <mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>
91
    <mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
92
    <bean class="eu.dnetlib.repo.manager.service.config.SwaggerConfig"/>
93
</beans>
(1-1/4)