On this page
In this guide, you can learn how to connect the MongoDB Java driver to your MongoDB instance using a Java Naming and Directory Interface (JNDI) Datasource.
MongoClientFactory includes a JNDI
ObjectFactory implementation that returns
based on a connection URI. Consult the following
guides to learn how to configure your application to connect using a
For JNDI implementations other than those listed here, you can create
Factory wrapper based on the driver's built-in