Skip to content

Commit 3681689

Browse files
committed
Update the JNDI reference documentation to mention the new ObjectFactory
JAVA-3237
1 parent 74a69df commit 3681689

File tree

1 file changed

+3
-3
lines changed
  • docs/reference/content/driver/tutorials

1 file changed

+3
-3
lines changed

docs/reference/content/driver/tutorials/jndi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title = "JNDI"
1111
## Java Naming and Directory Interface (JNDI)
1212

1313
The driver includes a [JNDI](http://docs.oracle.com/javase/8/docs/technotes/guides/jndi/index.html) ObjectFactory implementation,
14-
[`MongoClientFactory`]({{< apiref "com/mongodb/client/jndi/MongoClientFactory" >}}), that returns `MongoClient` instances based on a
14+
[`MongoClientFactory`]({{< apiref "com/mongodb/client/MongoClientFactory" >}}) ([`legacy version`]({{< apiref "com/mongodb/client/jndi/MongoClientFactory" >}})), that returns `MongoClient` instances based on a
1515
[connection string](http://docs.mongodb.org/manual/reference/connection-string/).
1616

1717
## Examples
@@ -43,7 +43,7 @@ connection string for the MongoDB cluster.
4343

4444
<subsystem xmlns="urn:jboss:domain:naming:2.0">
4545
<bindings>
46-
<object-factory name="java:global/MyMongoClient" module="org.mongodb" class="com.mongodb.client.jndi.MongoClientFactory">
46+
<object-factory name="java:global/MyMongoClient" module="org.mongodb" class="com.mongodb.client.MongoClientFactory">
4747
<environment>
4848
<property name="connectionString" value="mongodb://localhost:27017"/>
4949
</environment>
@@ -65,7 +65,7 @@ MongoDB cluster:
6565
auth="Container"
6666
type="com.mongodb.MongoClient"
6767
closeMethod="close"
68-
factory="com.mongodb.client.jndi.MongoClientFactory"
68+
factory="com.mongodb.client.MongoClientFactory"
6969
singleton="true"
7070
connectionString="mongodb://localhost"/>
7171

0 commit comments

Comments
 (0)