Docs Menu
Docs Home
/ / /
Java Sync Driver

Connection Guide

On this page

  • Overview

Learn how to set up a connection and specify connection behavior from your application to a MongoDB deployment using the driver in the following sections:

  • Connect to MongoDB

  • View a List of Connection Options

  • Specify Connection Behavior with the MongoClient Class

  • Enable Network Compression

  • Enable TLS/SSL on a Connection

  • Connect to MongoDB by Using a SOCKS5 Proxy

  • Connect to MongoDB by Using a JNDI Datasource

  • Connect to MongoDB Atlas from AWS Lambda

For information about authenticating with a MongoDB instance, see Authentication Mechanisms and Enterprise Authentication Mechanisms.




Connect to MongoDB

On this page