Skip to content

Commit ad1445a

Browse files
authored
DOCSP-43839: jndi feedback (#573)
* DOCSP-43839: jndi feedback * formatting fix * convert to rst include * remove action
1 parent e0ad954 commit ad1445a

File tree

4 files changed

+18
-26
lines changed

4 files changed

+18
-26
lines changed

.github/workflows/check-autobuilder.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

source/fundamentals/connection/jndi.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.. _jndi:
2+
.. _java-sync-jndi:
23

34
=============================================
45
Connect to MongoDB by Using a JNDI Datasource
@@ -47,9 +48,7 @@ JNDI Datasource.
4748

4849
Add the following ``module.xml`` file into the module:
4950

50-
.. literalinclude:: /includes/fundamentals/code-snippets/wildfly-module-with-version.xml
51-
:language: xml
52-
51+
.. include:: /includes/fundamentals/code-snippets/wildfly-module-with-version.rst
5352

5453
#. Add a binding to the naming subsystem configuration that references the
5554
preceding module, the ``MongoClientFactory`` class, and the
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. code-block:: xml
2+
:caption: module.xml
3+
4+
<module xmlns="urn:jboss:module:1.9" name="org.mongodb">
5+
<resources>
6+
<resource-root path="bson-{+full-version+}.jar"/>
7+
<resource-root path="bson-record-codec-{+full-version+}.jar"/>
8+
<resource-root path="mongodb-driver-core-{+full-version+}.jar"/>
9+
<resource-root path="mongodb-driver-sync-{+full-version+}.jar"/>
10+
</resources>
11+
<dependencies>
12+
<module name="javax.api"/>
13+
<module name="javax.transaction.api"/>
14+
<module name="javax.servlet.api" optional="true"/>
15+
</dependencies>
16+
</module>

source/includes/fundamentals/code-snippets/wildfly-module-with-version.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)