Java MongoDB Tutorial

MongoDB, noSQL open source database, written in C++, with many great features like map-reduce , auto sharding, replication, high availability and etc.
In this Java MongoDB tutorials, it providing many step by step examples and explanations on using Java on MongoDB 1.8.1.
MongoDB Quick Start
MongoDB installation and configuration.
- Install MongoDB on Windows
How to install MongoDB on Windows. - Run MongoDB as Windows Service
How to make MongoDB run as Windows Service - Install MongoDB on Ubuntu
How to use 10gen package to install MongoDB on Ubuntu or Debian. - Create database or collection in MongoDB
Database or collection in MongoDB is created on the fly ~ - MongoDB need repair if server is crashed
After mongoDB server is crash, files will be locaked, you can use repair to solve it.
Java MongoDB Examples
Java MongoDB driver APIs examples to perform insert, update, query and delete documents from MongoDB.
- Java MongoDB hello world example
Classic hello world example to show you how to use Java MongoDB driver APIs to connect MongoDB. - Java Authentication access to MongoDB
Example to perform authentication access to MongoDB. - Java MongoDB : Get collection from database
db.getCollection() to get all collections name from MongoDB. - Java MongoDB : Insert a document
4 ways to insert JSON data into a mongoDB. - Java MongoDB : Update document
Example to use collection.update() to update an existing document - Java MongoDB : Query document
Example to use collection.find() to get / query document from collection. - Java MongoDB : Delete document
Example to use collection.remove() to delete document from collection. - Java MongoDB : Save image example
Use GridFS APIs to save binary fle into MongoDB. - Java MongoDB : Convert JSON data to DBObject
Example to convert JSON data to DBObject
Spring Data MongoDB Examples
Spring Data for MongoDB examples to perform insert, update, query and delete documents from MongoDB.
- Spring Data MongoDB hello world example
Configure (both XML and annotation) and perform CRUD operations with “Spring Data for MongoDB” framework. - Spring Data MongoDB : Insert document
Example to use Spring data save(), insert() and insertList() to save domain object into mongoDB database. - Spring Data MongoDB : Update document
Example to use Spring data save(), updateFirst() and updateMulti() to update existing domain object from mongoDB database. - Spring Data MongoDB : Query document
Example to use Spring data findOne(), find() and getCollection() to get / query documents from mongoDB. - Spring Data MongoDB : Delete document
Example to remove() and findAndRemove() to delete document from mongoDB.
References
- MongoDB official site
- Java MongoDB official tutorials
- Java development with MongoDB
- Spring data for MongoDB
- Spring data for MongoDB documentation
- Morphia for MongoDB tutorial






Nowadays there are some good books about MongoDB, but if you want to learn in faster way, I can recommend pretty good MongoDB video tutorial
There is free lesson with introduction to MongoDB.
Regards!
[...] olarak faydal? bir link : http://www.mkyong.com/tutorials/java-mongodb-tutorials/ Payla??n:Like this:Be?enBe the first to like this post. This entry was posted in kodmod and [...]
[...] 3, http://www.mkyong.com/tutorials/java-mongodb-tutorials/ [...]