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: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

    
8
       http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
9
	http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
10
    http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
11

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

    
14
    <import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
15
    <import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
16
    <import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
17
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
18
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
19
    <import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
20
    <import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
21

    
22

    
23

    
24
    <bean id="maillib" class="eu.dnetlib.utils.MailLibrary" init-method="init">
25
        <property name="mailhost" value="${services.validator.mail.host}"/>
26
        <property name="smtpPort" value="${services.validator.mail.port}"/>
27
        <property name="authenticate" value="${services.validator.mail.authenticate}"/>
28
        <property name="username" value="${services.validator.mail.username}"/>
29
        <property name="password" value="${services.validator.mail.password}"/>
30
        <property name="from" value="${services.validator.mail.fromAddress}"/>
31
        <property name="replyTo" value="${services.validator.mail.replyToAddress}"/>
32
        <property name="mode" value="${services.validator.mail.mode}"/>
33
        <property name="debug" value="${services.validator.mail.debug}"/>
34
    </bean>
35

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

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

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

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

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

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

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

    
95
</beans>
(2-2/5)