Revision 42188
Added by Sandro La Bruzzo about 8 years ago
applicationContext-dnet-oai-publisher.xml | ||
---|---|---|
1 | 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:p="http://www.springframework.org/schema/p" |
|
4 |
xmlns:util="http://www.springframework.org/schema/util" |
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|
6 |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> |
|
2 |
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 |
xmlns:p="http://www.springframework.org/schema/p" xmlns="http://www.springframework.org/schema/beans" |
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
7 | 5 |
|
8 |
<bean id="oaiCacheManager" |
|
9 |
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" |
|
10 |
p:cacheManagerName="oaiCacheManger" |
|
11 |
p:configLocation="classpath:/eu/dnetlib/data/information/oai/cache/ehcache.xml" /> |
|
12 | 6 |
|
13 |
<bean id="mdformatsEhCache" class="net.sf.ehcache.Cache" |
|
14 |
factory-bean="oaiCacheManager" factory-method="getCache"> |
|
15 |
<constructor-arg value="metadataFormats" /> |
|
7 |
<bean id="mdformatCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" |
|
8 |
p:cacheName="metadataFormats" |
|
9 |
p:eternal="false" p:timeToLive="500" p:timeToIdle="300" |
|
10 |
p:maxElementsInMemory="10" p:maxElementsOnDisk="0" p:overflowToDisk="false" |
|
11 |
p:cacheManager-ref="defaultCacheManager"> |
|
16 | 12 |
</bean> |
17 | 13 |
|
18 |
<bean id="mdFormatsCache" class="eu.dnetlib.miscutils.cache.EhCache" |
|
19 |
p:cache-ref="mdformatsEhCache" /> |
|
14 |
|
|
20 | 15 |
|
21 | 16 |
<!-- beans --> |
22 |
<bean id="oaiProperties" class="eu.dnetlib.data.information.oai.publisher.OAIProperties"
|
|
23 |
p:repoEmail="${services.oai.publisher.repo.email}" p:repoName="${services.oai.publisher.repo.name}"
|
|
24 |
p:earliestDatestamp="${services.oai.publisher.repo.earliestdatestamp}"
|
|
25 |
p:baseUrl="${services.oai.publisher.baseUrl}" p:deletedRecordSupport="${services.oai.publisher.deletedrecords}"
|
|
26 |
p:dateGranularity="${services.oai.publisher.repo.granularity}" />
|
|
17 |
<bean id="oaiProperties" class="eu.dnetlib.oai.OAIProperties"
|
|
18 |
p:repoEmail="${services.oai.publisher.repo.email}" p:repoName="${services.oai.publisher.repo.name}"
|
|
19 |
p:earliestDatestamp="${services.oai.publisher.repo.earliestdatestamp}"
|
|
20 |
p:baseUrl="${services.oai.publisher.baseUrl}" p:deletedRecordSupport="${services.oai.publisher.deletedrecords}"
|
|
21 |
p:dateGranularity="${services.oai.publisher.repo.granularity}" />
|
|
27 | 22 |
|
28 | 23 |
<bean id="dnetOAICore" |
29 |
class="eu.dnetlib.data.information.oai.publisher.core.DNetOAICore" |
|
30 |
p:pageSize="${services.oai.publisher.dnet.pagesize}"/> |
|
24 |
class="eu.dnetlib.oai.core.DNetOAICore" |
|
25 |
p:pageSize="${services.oai.publisher.dnet.pagesize}" |
|
26 |
p:mdFormatsCache-ref="mdformatCache"/> |
|
31 | 27 |
|
28 |
<bean id="oaiISLookupClient" class="eu.dnetlib.oai.conf.OAIISLookUpClient"/> |
|
29 |
|
|
32 | 30 |
<!-- Tracing --> |
33 | 31 |
|
34 | 32 |
<bean name="oaiControllerInterceptor" |
35 |
class="eu.dnetlib.data.information.oai.publisher.core.CoreInterceptor">
|
|
33 |
class="eu.dnetlib.oai.core.CoreInterceptor">
|
|
36 | 34 |
<property name="enterMessage" |
37 | 35 |
value="ENTER: $[targetClassShortName].$[methodName]($[arguments])" /> |
38 | 36 |
<property name="exitMessage" |
Also available in: Unified diff
Fixed OAi-Store service, now it works!