Project

General

Profile

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="http://cxf.apache.org/transports/http/configuration" 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
                        http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
7

    
8
	<bean id="dnetLoggerMongoDao" class="eu.dnetlib.common.logging.dao.DnetLoggerMongoDao"
9
	      p:db-ref="loggingMongoDB"/>
10

    
11
	<bean id="loggingMongoClient" class="com.mongodb.MongoClient">
12
		<constructor-arg index="0" type="com.mongodb.ServerAddress">
13
			<bean class="com.mongodb.ServerAddress">
14
				<constructor-arg index="0" value="${dnet.logger.mongo.host}"/>
15
				<constructor-arg index="1" value="${dnet.logger.mongo.port}"/>
16
			</bean>
17
		</constructor-arg>
18
	</bean>
19

    
20
	<bean id="loggingMongoDB" factory-bean="loggingMongoClient"
21
	      factory-method="getDatabase">
22
		<constructor-arg type="java.lang.String" value="${dnet.logger.mongo.db}"/>
23
	</bean>
24

    
25
</beans>
(2-2/2)