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://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
	xmlns:util="http://www.springframework.org/schema/util"
9

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

    
21
<!-- 	<bean id="oaiCacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" scope="singleton"> -->
22
<!--     	<property name="configLocation"  value="/classes/gr/uoa/di/validator/cache/ehcache.xml"/> -->
23
<!-- 	</bean> -->
24
	
25
	<bean id="validator" class="eu.dnetlib.validator.service.impls.MemoryThreadValidator" init-method="start" >
26
		<property name="providersManager" ref="providersManager"/>
27
		<property name="listenersManager" ref="listenersManager" />
28
		<property name="dnetWorkflow" value="${services.validator.dnetWorkflow}" />
29
		<property name="cacheManager" ref="cacheManager" />
30
		<constructor-arg index="0" ref="threadPoolExecutor" />
31
		<constructor-arg index="1" ref="taskExecutor" />
32
		<constructor-arg index="2" value="${services.validator.engine.timeout}" />
33
		<constructor-arg index="3" value="${services.validator.engine.generalTimeout}" />
34
	</bean>
35

    
36
	<bean id="cacheManager" class="net.sf.ehcache.CacheManager" />
37

    
38
	<bean id="taskExecutor" class="eu.dnetlib.validator.service.impls.executors.ThreadExecutor">
39
		<constructor-arg index="0" ref="threadPoolExecutor"/>
40
	</bean>
41
	
42
	<bean id="threadPoolExecutor" class="java.util.concurrent.ThreadPoolExecutor" >
43
		<constructor-arg index="0" value="${services.validator.engine.poolExecutor.corePoolSize}" />
44
		<constructor-arg index="1" value="${services.validator.engine.poolExecutor.maximumPoolSize}" />
45
		<constructor-arg index="2" value="${services.validator.engine.poolExecutor.keepAliveTime}" />
46
		<constructor-arg index="3"><util:constant static-field="java.util.concurrent.TimeUnit.SECONDS"/></constructor-arg>
47
		<constructor-arg index="4">
48
			<bean class="java.util.concurrent.LinkedBlockingQueue"/>
49
		</constructor-arg>					
50
	</bean>	
51
</beans>
(4-4/7)