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:context="http://www.springframework.org/schema/context"
4
	xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws"
5
	xmlns:p="http://www.springframework.org/schema/p"
6
	xmlns:template="http://dnetlib.eu/springbeans/template" xmlns:t="http://dnetlib.eu/springbeans/t"
7
	xmlns:tx="http://www.springframework.org/schema/tx"
8

    
9
	xsi:schemaLocation="
10
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
11
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
12
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
13
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
14
        http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
15
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
16
        http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd"
17
	default-autowire="no">
18

    
19
	<bean id="openaire.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
20
		<property name="driverClassName" value="${services.validator.openaire.driverClassName}" />
21
		<property name="url" value="${services.validator.openaire.url}" />
22
		<property name="username" value="${services.validator.openaire.username}" />
23
		<property name="password" value="${services.validator.openaire.password}" />
24
		
25
		<property name="maxIdle" value="10"/>
26
		<property name="maxActive" value="100"/>
27
		<property name="maxWait" value="10000"/>
28
		<property name="validationQuery" value="select 1"/>
29
		<property name="testOnBorrow" value="true"/>
30
		<property name="testWhileIdle" value="true"/>
31
		<property name="timeBetweenEvictionRunsMillis" value="1200000"/>
32
		<property name="minEvictableIdleTimeMillis" value="1800000"/>
33
		<property name="numTestsPerEvictionRun" value="5"/>
34
		<property name="defaultAutoCommit" value="false"/>
35
	</bean>
36
	
37
	<bean id="openaire.repositoryFactory" class="eu.dnetlib.repos.RepoApiDirectImpl">
38
		<property name="openAireDataSource" ref="openaire.dataSource" />
39
	</bean>
40
	
41
</beans>
42
<!-- 	<bean id="joomla.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> -->
43
<!-- 		<property name="driverClassName" value="${services.validator.joomla.driverClassName}" /> -->
44
<!-- 		<property name="url" value="${services.validator.joomla.url}" /> -->
45
<!-- 		<property name="username" value="${services.validator.joomla.username}" /> -->
46
<!-- 		<property name="password" value="${services.validator.joomla.password}" /> -->
47
		
48
<!-- 		<property name="maxIdle" value="10"/> -->
49
<!-- 		<property name="maxActive" value="100"/> -->
50
<!-- 		<property name="maxWait" value="10000"/> -->
51
<!-- 		<property name="validationQuery" value="select 1"/> -->
52
<!-- 		<property name="testOnBorrow" value="true"/> -->
53
<!-- 		<property name="testWhileIdle" value="true"/> -->
54
<!-- 		<property name="timeBetweenEvictionRunsMillis" value="1200000"/> -->
55
<!-- 		<property name="minEvictableIdleTimeMillis" value="1800000"/> -->
56
<!-- 		<property name="numTestsPerEvictionRun" value="5"/> -->
57
<!-- 		<property name="defaultAutoCommit" value="false"/> -->
58
<!-- 	</bean> -->
59

    
60
	
61
<!-- 	<bean id="joomla2ldap" class="gr.uoa.di.validator.api.ldap.Joomla2Ldap"> -->
62
<!-- 		<property name="joomlaDatasource" ref="joomla.dataSource" /> -->
63
<!-- 		<property name="ldapAddress" value="${services.users.ldap.address}" /> -->
64
<!-- 		<property name="ldapPort" value="${services.users.ldap.port}" /> -->
65
<!-- 		<property name="ldapUsername" value="${services.users.ldap.username}" /> -->
66
<!-- 		<property name="ldapPassword" value="${services.users.ldap.password}" /> -->
67
<!-- 		<property name="ldapUsersDN" value="${services.users.ldap.usersDN}" /> -->
68
<!-- 	</bean> -->
(1-1/4)