2018-09-03 13:47:22 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
|
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
|
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
|
|
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
|
|
|
|
|
|
|
|
<import resource="classpath*:/application-context.xml"/>
|
|
|
|
|
|
|
|
<import resource="classpath*:/eu/dnetlib/soap/cxf/applicationContext-eprbuilders.xml"/>
|
|
|
|
<import resource="classpath*:/eu/dnetlib/clients/ws/springContext-locatorFactory.xml"/>
|
|
|
|
<import resource="classpath*:/gr/uoa/di/driver/util/springContext-locators.xml"/>
|
|
|
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupFactory.xml"/>
|
|
|
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-lookupClients.xml"/>
|
|
|
|
<import resource="classpath*:/eu/dnetlib/enabling/hcm/springContext-hcmService.xml"/>
|
|
|
|
<import resource="classpath*:/gr/uoa/di/driver/app/springContext-commons.xml"/>
|
|
|
|
|
|
|
|
<!--<import resource="classpath*:/gr/uoa/di/driver/app/springContext-registrator.xml"/>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<bean id="maillib" class="eu.dnetlib.utils.MailLibrary" init-method="init">
|
|
|
|
<property name="mailhost" value="${services.validator.mail.host}"/>
|
|
|
|
<property name="smtpPort" value="${services.validator.mail.port}"/>
|
|
|
|
<property name="authenticate" value="${services.validator.mail.authenticate}"/>
|
|
|
|
<property name="username" value="${services.validator.mail.username}"/>
|
|
|
|
<property name="password" value="${services.validator.mail.password}"/>
|
|
|
|
<property name="from" value="${services.validator.mail.fromAddress}"/>
|
|
|
|
<property name="replyTo" value="${services.validator.mail.replyToAddress}"/>
|
|
|
|
<property name="mode" value="${services.validator.mail.mode}"/>
|
|
|
|
<property name="debug" value="${services.validator.mail.debug}"/>
|
|
|
|
</bean>
|
|
|
|
|
2019-01-03 13:19:45 +01:00
|
|
|
<bean class="eu.dnetlib.repo.manager.config.CascadingPropertyLoader"
|
2018-09-03 13:47:22 +02:00
|
|
|
id="propertyLoader">
|
|
|
|
<property name="order" value="2"/>
|
|
|
|
<property name="properties">
|
|
|
|
<bean class="eu.dnetlib.conf.WebappContextProperyFactory">
|
|
|
|
<property name="propertyFetcher">
|
|
|
|
<bean class="eu.dnetlib.conf.PropertyFetcher"/>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
</property>
|
|
|
|
<property name="ignoreUnresolvablePlaceholders" value="true"/>
|
|
|
|
<property name="locations">
|
|
|
|
<list>
|
|
|
|
<value>classpath*:/gr/**/springContext-*.properties</value>
|
|
|
|
<value>classpath*:/eu/**/springContext-*.properties</value>
|
|
|
|
|
|
|
|
<value>classpath*:/application.properties</value>
|
|
|
|
<value>classpath*:/email-texts.properties</value>
|
|
|
|
|
|
|
|
<value>classpath*:dnet-site-wizard.properties</value>
|
|
|
|
<value>classpath*:dnet-site-override.properties</value>
|
|
|
|
<value>classpath*:dnet-wizard.properties</value>
|
2018-09-11 10:54:58 +02:00
|
|
|
<value>classpath*:dnet-override-new.properties</value>
|
2018-09-03 13:47:22 +02:00
|
|
|
<value>classpath*:dnet-validator-wizard.properties</value>
|
|
|
|
<value>classpath*:dnet-validator-override.properties</value>
|
|
|
|
<value>classpath*:dnet-site-force-override.properties</value>
|
|
|
|
<value>classpath*:dnet-force-override.properties</value>
|
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="repomanager.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
|
|
<property name="driverClassName" value="${repomanager.db.driverClassName}" />
|
|
|
|
<property name="url" value="${repomanager.db.url}" />
|
|
|
|
<property name="username" value="${repomanager.db.username}" />
|
|
|
|
<property name="password" value="${repomanager.db.password}" />
|
|
|
|
<property name="maxIdle" value="10" />
|
|
|
|
<property name="maxActive" value="100" />
|
|
|
|
<property name="maxWait" value="10000" />
|
|
|
|
<property name="validationQuery" value="SELECT 1;" />
|
|
|
|
<property name="testOnBorrow" value="true" />
|
|
|
|
<property name="testOnReturn" value="true" />
|
|
|
|
<property name="testWhileIdle" value="true" />
|
|
|
|
<property name="timeBetweenEvictionRunsMillis" value="1200000" />
|
|
|
|
<property name="minEvictableIdleTimeMillis" value="1800000" />
|
|
|
|
<property name="numTestsPerEvictionRun" value="5" />
|
|
|
|
<property name="poolPreparedStatements" value="true" />
|
|
|
|
<property name="defaultAutoCommit" value="true" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<tx:annotation-driven transaction-manager="txManager"/>
|
|
|
|
|
|
|
|
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
|
|
|
<property name="dataSource" ref="repomanager.dataSource"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<mvc:resources mapping="swagger-ui.html" location="classpath:/META-INF/resources/"/>
|
|
|
|
<mvc:resources mapping="/webjars/**" location="classpath:/META-INF/resources/webjars/"/>
|
2019-01-03 13:19:45 +01:00
|
|
|
<bean class="eu.dnetlib.repo.manager.config.SwaggerConfig"/>
|
2018-09-03 13:47:22 +02:00
|
|
|
|
|
|
|
</beans>
|