1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:http="http://cxf.apache.org/transports/http/configuration"
|
3
|
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
|
5
|
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
|
6
|
|
7
|
|
8
|
<bean id="dnetLoggerMongoDao" class="eu.dnetlib.msro.logging.DnetLoggerMongoDao" p:db-ref="loggingMongoDB" />
|
9
|
|
10
|
<bean id="loggingMongoClient" class="com.mongodb.MongoClient">
|
11
|
<constructor-arg index="0" type="com.mongodb.ServerAddress">
|
12
|
<bean class="com.mongodb.ServerAddress">
|
13
|
<constructor-arg index="0" value="${dnet.logger.mongo.host}" />
|
14
|
<constructor-arg index="1" value="${dnet.logger.mongo.port}" />
|
15
|
</bean>
|
16
|
</constructor-arg>
|
17
|
</bean>
|
18
|
|
19
|
<bean id="loggingMongoDB" factory-bean="loggingMongoClient" factory-method="getDatabase">
|
20
|
<constructor-arg type="java.lang.String" value="${dnet.logger.mongo.db}" />
|
21
|
</bean>
|
22
|
|
23
|
</beans>
|