[JAVA-2883] JNDI ObjectFactory support for new MongoClient interface Created: 06/Jun/18  Updated: 28/Oct/23  Resolved: 07/Jan/19

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 3.7.1
Fix Version/s: 3.10.0

Type: New Feature Priority: Minor - P4
Reporter: Zoe Snape Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

The old com.mongodb.MongoClient class had a com.mongodb.client.jndi.MongoClientFactory factory class which was compatible with JNDI (as described here). The new com.mongodb.client.MongoClient API's factory, com.mongodb.client.MongoClients, does not implement the ObjectFactory interface and is not compatible with JNDI. It would be nice to add JNDI compatibility to the new API, either by adding a getObjectInstance method to the MongoClients factory or by adding an updated MongoClientFactory which returns instances of the new class.



 Comments   
Comment by Githook User [ 14/Jan/19 ]

Author:

{'username': 'jyemin', 'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin'}

Message: Add new JNDI ObjectFactory implementation

Add JNDI ObjectFactory implementation that is a factory for
com.mongodb.client.MongoClient instances.

JAVA-2883
Branch: 3.10.x
https://github.com/mongodb/mongo-java-driver/commit/753d863a59c65648e791d568c341eaee068c81a1

Comment by Githook User [ 07/Jan/19 ]

Author:

{'username': 'jyemin', 'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin'}

Message: Add new JNDI ObjectFactory implementation

Add JNDI ObjectFactory implementation that is a factory for
com.mongodb.client.MongoClient instances.

JAVA-2883
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/91462202960350f2b88ce323099d347a3871a7b1

Generated at Thu Feb 08 08:58:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.