
spring.mongo-real.xml Maven / Gradle / Ivy
The newest version!
<!-- #%L Spring DAO Mongo %% Copyright (C) 2013 - 2015 Taimos GmbH %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:context="http://www.springframework.org/schema/context" xmlns:cxf="http://cxf.apache.org/core" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <bean id="mongoClient" class="com.mongodb.MongoClient"> <constructor-arg> <bean class="com.mongodb.MongoClientURI"> <constructor-arg value="${mongodb.uri:mongodb://${mongodb.host:localhost}:${mongodb.port:27017}}" /> <constructor-arg> <!-- Options --> <bean class="de.taimos.dao.mongo.MongoClientOptionsFactory"> <property name="socketTimeout" value="${mongodb.socketTimeout:10000}" /> <property name="connectTimeout" value="${mongodb.connectTimeout:10000}" /> </bean> </constructor-arg> </bean> </constructor-arg> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy