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="validator" class="eu.dnetlib.validator.service.impls.SpringValidator" scope="singleton" >
37
		<property name="providersManager" ref="providersManager"/>
38
		<property name="listenersManager" ref="listenersManager" />
39
		<property name="dnetWorkflow" value="${services.validator.dnetWorkflow}" />
40
		<property name="cacheManager" ref="cacheManager" />
41
		<constructor-arg index="0" ref="jobExecutor" />
42
		<constructor-arg index="1" ref="taskExecutor" />
43
		<constructor-arg index="2" value="${services.validator.engine.generalTimeout}" />
44
	</bean>
45

    
46
	<bean id="taskExecutor" class="org.springframework.core.task.SyncTaskExecutor">
47
<!-- 	    <property name="corePoolSize" value="20" /> -->
48
<!-- 	    <property name="maxPoolSize" value="40" /> -->
49
<!-- 	    <property name="queueCapacity" value="100" /> -->
50
	</bean>
51
	
52
	<bean id="jobExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
53
	    <property name="corePoolSize" value="32" />
54
	    <property name="maxPoolSize" value="64" />
55
	    <property name="queueCapacity" value="64" />
56
	</bean>
57

    
58
	<bean id="cacheManager" class="net.sf.ehcache.CacheManager" />
59

    
60
<!-- 	<bean id="taskExecutor" class="eu.dnetlib.validator.service.impls.executors.ThreadExecutor"> -->
61
<!-- 		<constructor-arg index="0" ref="threadPoolExecutor"/> -->
62
<!-- 	</bean> -->
63
	
64
<!-- 	<bean id="threadPoolExecutor" class="java.util.concurrent.ThreadPoolExecutor" > -->
65
<!-- 		<constructor-arg index="0" value="${services.validator.engine.poolExecutor.corePoolSize}" /> -->
66
<!-- 		<constructor-arg index="1" value="${services.validator.engine.poolExecutor.maximumPoolSize}" /> -->
67
<!-- 		<constructor-arg index="2" value="${services.validator.engine.poolExecutor.keepAliveTime}" /> -->
68
<!-- 		<constructor-arg index="3"><util:constant static-field="java.util.concurrent.TimeUnit.SECONDS"/></constructor-arg> -->
69
<!-- 		<constructor-arg index="4"> -->
70
<!-- 			<bean class="java.util.concurrent.LinkedBlockingQueue"/> -->
71
<!-- 		</constructor-arg>					 -->
72
<!-- 	</bean>	 -->
73
</beans>
(4-4/7)