Skip to content

Commit 9789c2b

Browse files
committed
DOCSP-47044: Polling DNS SRV records
1 parent aa7e5ee commit 9789c2b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/connection/connect.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ In the example, you set two connection options: ``maxPoolSize=20`` and
9494
``w=majority``. For more information about connection options, skip to the
9595
:ref:`connection-options` section of this guide.
9696

97+
DNS Service Discovery
98+
~~~~~~~~~~~~~~~~~~~~~
99+
100+
.. sharedinclude:: dbx/srv-polling.rst
101+
102+
.. replacement:: srv-uri
103+
104+
.. code-block:: java
105+
106+
ConnectionString uri = new ConnectionString("mongodb+srv://<hostname>/");
107+
97108
.. _connect-atlas-java-driver:
98109

99110
Atlas Connection Example

0 commit comments

Comments
 (0)