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

    
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
9
        http://www.springframework.org/schema/tx/spring-tx.xsd">
10
		
11
	<bean id="openaire.dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
12
		<property name="driverClassName" value="${openaire.db.driverClassName}" />
13
		<property name="url" value="${openaire.db.url}" />
14
		<property name="username" value="${openaire.db.username}" />
15
		<property name="password" value="${openaire.db.password}" />
16
		<property name="maxIdle" value="10" />
17
		<property name="maxActive" value="100" />
18
		<property name="maxWait" value="10000" />
19
		<property name="validationQuery" value="SELECT 1;" />
20
		<property name="testOnBorrow" value="true" />
21
		<property name="testOnReturn" value="true" />
22
		<property name="testWhileIdle" value="true" />
23
		<property name="timeBetweenEvictionRunsMillis" value="1200000" />
24
		<property name="minEvictableIdleTimeMillis" value="1800000" />
25
		<property name="numTestsPerEvictionRun" value="5" />
26
		<property name="poolPreparedStatements" value="true" />
27
		<property name="defaultAutoCommit" value="true" />
28
	</bean>
29

    
30
	<bean id="claimConnector" class="eu.dnetlib.openaire.thrift.ClaimConnector">
31
		<property name="actionManagerLocator" ref="actionManagerLocator" />
32
		<property name="datasource" ref="openaire.dataSource" />
33
		<property name="lookupServiceLocator" ref="lookupServiceLocator"/>
34
	</bean>
35
	
36
	<bean id="alertConnector" class="eu.dnetlib.openaire.thrift.AlertConnector">
37
		<property name="alertServiceLocator" ref="alertServiceLocator" />
38
	</bean>
39
	
40
	<bean id="openAireConnector" class="eu.dnetlib.openaire.thrift.OpenAIREConnectorImpl">
41
		<property name="claimConnector" ref="claimConnector" />
42
		<property name="alertConnector" ref="alertConnector" />
43
	</bean>
44
	
45
	<bean id="thriftServer" class="eu.dnetlib.openaire.thrift.ThriftServer" init-method="start" destroy-method="stop">
46
		<property name="openAireConnector" ref="openAireConnector" />
47
		<property name="port" value="${openaire.connector.thrift.port}"/>
48
		<property name="timeout" value="${openaire.connector.thrift.timeout}" />
49
	</bean>
50

    
51
    <tx:annotation-driven transaction-manager="txManager"/>
52
    <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
53
        <property name="dataSource" ref="openaire.dataSource"/>
54
    </bean>
55

    
56

    
57
</beans>
58

    
(2-2/2)