diff --git a/source/connection/connect.txt b/source/connection/connect.txt index d056f043d..d9820f26b 100644 --- a/source/connection/connect.txt +++ b/source/connection/connect.txt @@ -60,11 +60,8 @@ figure explains each part of a sample connection URI: :alt: An example of a connection string that demonstrates the protocol, credentials, hostname or IP, port, and connection options In this example, you connect to an Atlas MongoDB deployment that has a -DNS SRV record. For more details, see the :manual:`DNS Seed List -Connection Format -` -documentation. This format offers flexibility in deployment and the -ability to change the servers in rotation without reconfiguring clients. +DNS SRV record. For more information, see the :ref:`connection-uri-srv` +section of this guide. .. note:: @@ -94,6 +91,19 @@ In the example, you set two connection options: ``maxPoolSize=20`` and ``w=majority``. For more information about connection options, skip to the :ref:`connection-options` section of this guide. +.. _connection-uri-srv: + +DNS Service Discovery +~~~~~~~~~~~~~~~~~~~~~ + +.. sharedinclude:: dbx/srv-polling.rst + + .. replacement:: srv-uri + + .. code-block:: java + + String uri = "mongodb+srv:///"; + .. _connect-atlas-java-driver: Atlas Connection Example