MongoDB and Java applications
It requires Mongo Java driver for your java code to talk to MongoDB. The sample application mentioned below has been written on Windows 8 operating system. I have used jdk 1.7 here. The sample application is written with eclipse.
Example to connect with MongoDB using java
1) Make sure your MongoDB server process is up and running (Refer to Introduction for details)
2) Maven Entry
3) Code snippet
We assume here that you have used introduction section of this article to install MongoDB and setup of basics e.g database, collection etc has been done.
Please share your comments.