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
|
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
8
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
9
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
|
10
|
|
11
|
<import resource="classpath*:/application-context.xml"/>
|
12
|
|
13
|
<import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
|
14
|
<import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
|
15
|
<import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
|
16
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
|
17
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
|
18
|
<import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
|
19
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
|
20
|
|
21
|
|
22
|
<bean id="maillib" class="eu.dnetlib.utils.MailLibrary" init-method="init">
|
23
|
<property name="mailhost" value="${services.validator.mail.host}"/>
|
24
|
<property name="smtpPort" value="${services.validator.mail.port}"/>
|
25
|
<property name="authenticate" value="${services.validator.mail.authenticate}"/>
|
26
|
<property name="username" value="${services.validator.mail.username}"/>
|
27
|
<property name="password" value="${services.validator.mail.password}"/>
|
28
|
<property name="from" value="${services.validator.mail.fromAddress}"/>
|
29
|
<property name="replyTo" value="${services.validator.mail.replyToAddress}"/>
|
30
|
<property name="mode" value="${services.validator.mail.mode}"/>
|
31
|
<property name="debug" value="${services.validator.mail.debug}"/>
|
32
|
</bean>
|
33
|
|
34
|
<bean class="eu.dnetlib.repo.manager.service.config.CascadingPropertyLoader"
|
35
|
id="propertyLoader">
|
36
|
<property name="order" value="2"/>
|
37
|
<property name="properties">
|
38
|
<bean class="eu.dnetlib.conf.WebappContextProperyFactory">
|
39
|
<property name="propertyFetcher">
|
40
|
<bean class="eu.dnetlib.conf.PropertyFetcher"/>
|
41
|
</property>
|
42
|
</bean>
|
43
|
</property>
|
44
|
<property name="ignoreUnresolvablePlaceholders" value="true"/>
|
45
|
<property name="locations">
|
46
|
<list>
|
47
|
<value>classpath*:/gr/**/springContext-*.properties</value>
|
48
|
<value>classpath*:/eu/**/springContext-*.properties</value>
|
49
|
|
50
|
<value>classpath*:/eu/dnetlib/repo/manager/service/email-texts.properties</value>
|
51
|
|
52
|
<value>classpath*:dnet-site-wizard.properties</value>
|
53
|
<value>classpath*:dnet-site-override.properties</value>
|
54
|
<value>classpath*:dnet-wizard.properties</value>
|
55
|
<value>classpath*:dnet-override.properties</value>
|
56
|
<value>classpath*:dnet-validator-wizard.properties</value>
|
57
|
<value>classpath*:dnet-validator-override.properties</value>
|
58
|
<value>classpath*:dnet-site-force-override.properties</value>
|
59
|
<value>classpath*:dnet-force-override.properties</value>
|
60
|
</list>
|
61
|
</property>
|
62
|
</bean>
|
63
|
|
64
|
<bean id="repomanager.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
65
|
<property name="driverClassName" value="${repomanager.db.driverClassName}" />
|
66
|
<property name="url" value="${repomanager.db.url}" />
|
67
|
<property name="username" value="${repomanager.db.username}" />
|
68
|
<property name="password" value="${repomanager.db.password}" />
|
69
|
<property name="maxIdle" value="10" />
|
70
|
<property name="maxActive" value="100" />
|
71
|
<property name="maxWait" value="10000" />
|
72
|
<property name="validationQuery" value="SELECT 1;" />
|
73
|
<property name="testOnBorrow" value="true" />
|
74
|
<property name="testOnReturn" value="true" />
|
75
|
<property name="testWhileIdle" value="true" />
|
76
|
<property name="timeBetweenEvictionRunsMillis" value="1200000" />
|
77
|
<property name="minEvictableIdleTimeMillis" value="1800000" />
|
78
|
<property name="numTestsPerEvictionRun" value="5" />
|
79
|
<property name="poolPreparedStatements" value="true" />
|
80
|
<property name="defaultAutoCommit" value="true" />
|
81
|
</bean>
|
82
|
|
83
|
<tx:annotation-driven transaction-manager="txManager"/>
|
84
|
|
85
|
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
86
|
<property name="dataSource" ref="repomanager.dataSource"/>
|
87
|
</bean>
|
88
|
|
89
|
<mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>
|
90
|
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
|
91
|
<bean class="eu.dnetlib.repo.manager.service.config.SwaggerConfig"/>
|
92
|
|
93
|
</beans>
|