1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns="http://www.springframework.org/schema/beans"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
6
|
|
7
|
<bean id="recentPublicationsQueue" class="eu.dnetlib.openaire.api.RecentPublicationsQueue"
|
8
|
p:db-ref="msroApiMongoDB" p:collection="${openaireplus.msro.api.mongo.collection}"
|
9
|
init-method="init"/>
|
10
|
|
11
|
<bean id="apiMongoServer" class="com.mongodb.Mongo">
|
12
|
<constructor-arg index="0" type="com.mongodb.ServerAddress">
|
13
|
<bean class="com.mongodb.ServerAddress">
|
14
|
<constructor-arg index="0"
|
15
|
value="${openaireplus.msro.api.mongo.host}"/>
|
16
|
<constructor-arg index="1"
|
17
|
value="${openaireplus.msro.api.mongo.port}"/>
|
18
|
</bean>
|
19
|
</constructor-arg>
|
20
|
</bean>
|
21
|
|
22
|
<bean id="apiOafToIndexRecordFactory" class="eu.dnetlib.msro.workflows.nodes.index.OafToIndexRecordFactory"
|
23
|
p:layoutToRecord="${openaireplus.msro.api.layoutToRecord.xslt}"/>
|
24
|
|
25
|
|
26
|
<bean id="msroApiMongoDB" factory-bean="apiMongoServer"
|
27
|
factory-method="getDB">
|
28
|
<constructor-arg index="0" value="${openaireplus.msro.api.mongo.db}"/>
|
29
|
</bean>
|
30
|
|
31
|
<bean id="openaireplusApisVelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
|
32
|
<property name="velocityProperties">
|
33
|
<value>
|
34
|
resource.loader=class
|
35
|
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
|
36
|
runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute
|
37
|
</value>
|
38
|
</property>
|
39
|
</bean>
|
40
|
|
41
|
</beans>
|