Connecting to MongoDB in Java
Learn about the Java driver for MongoDB and how to use it to connect to your Java applications.
Connecting to MongoDB in Java
Unit Overview
In this unit, you will be introduced to the Java driver for MongoDB and learn how it's used to connect to your Java applications. First, you'll install the MongoDB Java driver by using Maven. Next, you'll explore best practices when creating a MongoClient. Finally, you will learn how to troubleshoot a few of the most common connection issues.
Prerequisite
Lessons in This Unit
- Lesson 01: Using MongoDB Java Client Libraries
- Lesson 02: Connecting to an Atlas Cluster in Java Applications
- Lesson 03: Troubleshooting a MongoDB Connection in Java Applications

Xijing Zhang I Curriculum Engineer
Xijing Zhang is currently a Curriculum Engineer here at MongoDB. Previously, she developed curriculum over at Docker after getting her degree in Electrical Engineering from the University of Southern California.

Joe Nyirenda I Senior Technical Trainer
Joe is a Senior Technical trainer based in London. Prior to joining MongoDB he consulted and delivered applications across a variety of industry sectors including publishing, utilities, telcos, vehicle telemetry, insurance, academia and government.

Parker Faucher | University Curriculum Engineer
Parker is a Curriculum Engineer on the Education team at MongoDB. Prior to joining MongoDB, he helped maintain a world class developer bootcamp that was offered in multiple universities. He is a self taught developer who loves being able to give back to the community that has helped him so much.

Daniel Curran | Senior Curriculum Designer
Daniel is a Senior Curriculum Designer at MongoDB. Before joining MongoDB, he worked as an Instructional Designer and Content Developer specializing in technical content for a host of international clients. Daniel's goal is to remove obstacles so learners can feel confident on their journey to become masters of MongoDB.