Revision 48139
Added by Alessia Bardi almost 7 years ago
applicationContext-api.xml | ||
---|---|---|
4 | 4 |
xmlns="http://www.springframework.org/schema/beans" |
5 | 5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
6 | 6 |
|
7 |
<bean id="recentResultsQueue" class="eu.dnetlib.msro.openaireplus.api.RecentResultsQueue"
|
|
8 |
p:db-ref="msroApiMongoDB" p:collection="${openaireplus.msro.api.mongo.collection}"
|
|
9 |
init-method="init"/>
|
|
7 |
<bean id="recentResultsQueue" class="eu.dnetlib.msro.openaireplus.api.RecentResultsQueue"
|
|
8 |
p:db-ref="msroApiMongoDB" p:collection="${openaireplus.msro.api.mongo.collection}"
|
|
9 |
init-method="init"/>
|
|
10 | 10 |
|
11 | 11 |
|
12 |
<bean id="apiMongoServer" class="com.mongodb.Mongo">
|
|
13 |
<constructor-arg index="0" type="com.mongodb.ServerAddress">
|
|
14 |
<bean class="com.mongodb.ServerAddress">
|
|
15 |
<constructor-arg index="0"
|
|
16 |
value="${openaireplus.msro.api.mongo.host}"/>
|
|
17 |
<constructor-arg index="1"
|
|
18 |
value="${openaireplus.msro.api.mongo.port}"/>
|
|
19 |
</bean>
|
|
20 |
</constructor-arg>
|
|
21 |
</bean>
|
|
12 |
<bean id="apiMongoServer" class="com.mongodb.Mongo">
|
|
13 |
<constructor-arg index="0" type="com.mongodb.ServerAddress">
|
|
14 |
<bean class="com.mongodb.ServerAddress">
|
|
15 |
<constructor-arg index="0"
|
|
16 |
value="${openaireplus.msro.api.mongo.host}"/>
|
|
17 |
<constructor-arg index="1"
|
|
18 |
value="${openaireplus.msro.api.mongo.port}"/>
|
|
19 |
</bean>
|
|
20 |
</constructor-arg>
|
|
21 |
</bean>
|
|
22 | 22 |
|
23 |
<bean id="apiOafToIndexRecordFactory" class="eu.dnetlib.msro.openaireplus.utils.OafToIndexRecordFactory"
|
|
24 |
p:layoutToRecord="${openaireplus.msro.api.layoutToRecord.xslt}"/>
|
|
23 |
<bean id="apiOafToIndexRecordFactory" class="eu.dnetlib.msro.openaireplus.utils.OafToIndexRecordFactory"
|
|
24 |
p:layoutToRecord="${openaireplus.msro.api.layoutToRecord.xslt}"/>
|
|
25 | 25 |
|
26 | 26 |
|
27 |
<bean id="msroApiMongoDB" factory-bean="apiMongoServer"
|
|
28 |
factory-method="getDB">
|
|
29 |
<constructor-arg index="0" value="${openaireplus.msro.api.mongo.db}"/>
|
|
30 |
</bean>
|
|
27 |
<bean id="msroApiMongoDB" factory-bean="apiMongoServer"
|
|
28 |
factory-method="getDB">
|
|
29 |
<constructor-arg index="0" value="${openaireplus.msro.api.mongo.db}"/>
|
|
30 |
</bean>
|
|
31 | 31 |
|
32 |
<bean id="openaireplusApisVelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
|
|
33 |
<property name="velocityProperties">
|
|
34 |
<value>
|
|
35 |
resource.loader=class
|
|
36 |
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
|
|
37 |
runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute
|
|
38 |
</value>
|
|
39 |
</property>
|
|
40 |
</bean>
|
|
32 |
<bean id="openaireplusApisVelocityEngine" class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
|
|
33 |
<property name="velocityProperties">
|
|
34 |
<value>
|
|
35 |
resource.loader=class
|
|
36 |
class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
|
|
37 |
runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute
|
|
38 |
</value>
|
|
39 |
</property>
|
|
40 |
</bean>
|
|
41 | 41 |
|
42 | 42 |
</beans> |
Also available in: Unified diff
integrated (hopefully) all required changes from dnet40