Top "Mongo-java" questions

Mongo Java: How to serialize DBObject as JSON on file?

I have a document in MongoDB as name: name date_created: date p_vars: { 01: { a: a, b: b, } 02: { a: a, …

java json mongodb mongo-java
Spring data mongodb not closing mongodb connections

I am using spring-data-mongodb (1.7.0.RELEASE) with spring-webmvc framework for my web application. I am using basic CRUD functions using mongoRepository …

mongodb spring-data-mongodb mongo-java
how to serialize class?

When I insert a List into mongodb, there is a problem: Exception in thread "main" java.lang.IllegalArgumentException: can't serialize …

java mongodb mongo-java
how to prevent logging on console when connected to mongodb from java?

I followed this mongodb documentation. Here is my code public class JMongoDBCDemo { MongoClient mongoClient; DB db; DBCollection coll; public JMongoDBCDemo() { …

java mongodb logging mongo-java
MongoDB Java Driver - Use exists projection in find query

I want to get all documents where the field download does not exists find{ "download" : {$exists: false}} For Java I …

java mongodb bson mongo-java
MongoDB Java: Finding objects in Mongo using QueryBuilder $in operator returns nothing

I have a JUnit rule called as MongoRule looks like public class MongoRule extends ExternalResource { private static final Logger LOGGER = …

java mongodb mongo-java
How to update value of a key in a list of a json in Mongo

I have a document--- Employees:[ { name:"abc", contact:"123", email:"[email protected]" }, { name:"efg", contact:"456", email:"[email protected]" }, { name:"…

mongodb mongodb-query mongo-java
Mongo Connection Pooling(Changing the size of connection pool)

How to change the mongo connection pool size? I have seen it is 100 by default. Is there a way to …

java spring mongodb mongo-java spring-mongo
Java MongoDB save multiple documents at once

I Have a list of updated objects/documents i need save all the objects in the list at once. I …

mongodb spring-data-mongodb mongo-java mongo-java-driver mongotemplate
Is there a web server running in mongo?

When I start the config server I can see the following line in the logger: [websvr] admin web console waiting …

mongodb mongoid mongoose mongo-java