O'Reilly logo

MongoDB for Java Developers by Francesco Marchioni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Getting Started with Java Driver for MongoDB

This chapter discusses the MongoDB Java interface that consists of a JDBC driver that needs to be downloaded and included in your application's classpath. By using the MongoDB Java driver, you will be able to perform all the create/read/update/delete (CRUD) operations that we have so far accomplished using the mongo shell. The list of topics covered includes the following:

  • Downloading and installing the MongoDB JDBC driver
  • Setting up a basic Java project using Eclipse
  • Performing common CRUD operations using a Java application

Getting the Mongo JDBC driver

The MongoDB Java driver can be downloaded from the Maven central repository at http://central.maven.org/maven2/org/mongodb/mongo-java-driver/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required