Revision 45195
Added by Claudio Atzori over 7 years ago
applicationContext-dnet-mongo-logging.xml | ||
---|---|---|
3 | 3 |
xmlns:p="http://www.springframework.org/schema/p" |
4 | 4 |
xmlns:http="http://cxf.apache.org/transports/http/configuration" 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 |
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd"> |
|
6 | 7 |
|
7 | 8 |
|
8 |
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
|
|
9 |
<bean id="dnetLoggerMongoDao" class="eu.dnetlib.common.logging.dao.DnetLoggerMongoDao" />
|
|
9 | 10 |
|
10 |
|
|
11 |
<bean id="dnetLoggerMongoDao" class="eu.dnetlib.common.logging.dao.DnetLoggerMongoDao" |
|
12 |
p:db-ref="loggingMongoDB" /> |
|
13 |
|
|
14 | 11 |
<bean id="loggingMongoClient" class="com.mongodb.MongoClient"> |
15 | 12 |
<constructor-arg index="0" type="com.mongodb.ServerAddress"> |
16 | 13 |
<bean class="com.mongodb.ServerAddress"> |
... | ... | |
25 | 22 |
<constructor-arg type="java.lang.String" value="${dnet.logger.mongo.db}"/> |
26 | 23 |
</bean> |
27 | 24 |
|
28 |
</beans> |
|
25 |
|
|
26 |
<bean id="loggingJongoFactory" class="eu.dnetlib.common.logging.dao.JongoFactory" /> |
|
27 |
|
|
28 |
<bean id="loggingJongoDB" factory-bean="loggingJongoFactory" |
|
29 |
factory-method="newInstance"> |
|
30 |
<constructor-arg type="java.lang.String" value="${dnet.logger.mongo.db}"/> |
|
31 |
</bean> |
|
32 |
|
|
33 |
</beans> |
Also available in: Unified diff
migrated to dnet45