public interface IMongoClientFactory
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoClient |
getMongoClient(String dataSourceName)
Look up a MongoClient from the JNDI
|
com.mongodb.client.MongoClient |
getMongoClient(String dataSourceName,
Properties jndiEnvironment)
Set the JNDI environment to use for JNDI lookups.
|
List<String> |
getMongoClients()
Return all known/registered MongoClients
|
com.mongodb.client.MongoClient getMongoClient(String dataSourceName) throws NamingException
NamingException
com.mongodb.client.MongoClient getMongoClient(String dataSourceName, Properties jndiEnvironment) throws NamingException
Uses a Spring JndiTemplate with the given environment settings.
NamingException
JndiAccessor.setJndiTemplate(org.springframework.jndi.JndiTemplate)
Copyright © 2023 Frank!Framework. All rights reserved.