Monthly Archive: January 2013

Authentication to MongoDB with Java

MongoDB can be run in a secure mode where access to databases is controlled through name and password authentication. When run in this mode, any client application must provide a name and password before doing …

Java MongoDB Convert JSON data to DBObject

In this tutorial we will see that JSON format convert to the DBObject of MongoDB. Using “com.mongodb.util.JSON” class to convert JSON data directly to a DBObject. For example, data represent in JSON format : { …

Java MongoDB Query a Document to Database

In this tutorial one Of the four basic database operations (i.e. CRUD), read operation are those that retrieve records or documents from a collection in MongoDB. For general information about read operations and the factors …