From 9789c2b12eb8f00e4e1c140929401e38415970ab Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 3 Mar 2025 11:41:21 -0500 Subject: [PATCH 1/4] DOCSP-47044: Polling DNS SRV records --- source/connection/connect.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/connection/connect.txt b/source/connection/connect.txt index d056f043d..e3188c1dc 100644 --- a/source/connection/connect.txt +++ b/source/connection/connect.txt @@ -94,6 +94,17 @@ 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. +DNS Service Discovery +~~~~~~~~~~~~~~~~~~~~~ + +.. sharedinclude:: dbx/srv-polling.rst + + .. replacement:: srv-uri + + .. code-block:: java + + ConnectionString uri = new ConnectionString("mongodb+srv:///"); + .. _connect-atlas-java-driver: Atlas Connection Example From 09eb1851f1b550a026bf56636b1a4498839e4ad3 Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 3 Mar 2025 11:43:47 -0500 Subject: [PATCH 2/4] add ref --- source/connection/connect.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/connection/connect.txt b/source/connection/connect.txt index e3188c1dc..a180fb970 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 details, see the :ref:`connection-uri-srv` +section of this guide. .. note:: @@ -94,6 +91,8 @@ 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 ~~~~~~~~~~~~~~~~~~~~~ From 8d30e83b68dc335df609775f8d964b158cbb053f Mon Sep 17 00:00:00 2001 From: norareidy Date: Mon, 3 Mar 2025 11:46:46 -0500 Subject: [PATCH 3/4] word --- source/connection/connect.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/connection/connect.txt b/source/connection/connect.txt index a180fb970..0cf67f3c2 100644 --- a/source/connection/connect.txt +++ b/source/connection/connect.txt @@ -60,7 +60,7 @@ 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 :ref:`connection-uri-srv` +DNS SRV record. For more information, see the :ref:`connection-uri-srv` section of this guide. .. note:: From a0ddcaaf57fa87660f3edf7856e45d2b44c1529c Mon Sep 17 00:00:00 2001 From: norareidy Date: Tue, 4 Mar 2025 09:56:43 -0500 Subject: [PATCH 4/4] stage --- source/connection/connect.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/connection/connect.txt b/source/connection/connect.txt index 0cf67f3c2..d9820f26b 100644 --- a/source/connection/connect.txt +++ b/source/connection/connect.txt @@ -102,7 +102,7 @@ DNS Service Discovery .. code-block:: java - ConnectionString uri = new ConnectionString("mongodb+srv:///"); + String uri = "mongodb+srv:///"; .. _connect-atlas-java-driver: