public class JNDIUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getDefaultProperties() |
static Context |
getNamingContext(Properties jndiProperties)
Get the JNDI Context.
|
static Object |
lookup(String objectName,
Properties jndiProperties)
Lookup an object through the JNDI context.
|
static Object |
lookup(String objectName,
Properties jndiProperties,
ClassLoader[] classLoaders)
Lookup an object through the JNDI context.
|
public static Context getNamingContext(Properties jndiProperties) throws NamingException
jndiProperties - JNDI properties.NamingException - Error getting context.public static Object lookup(String objectName, Properties jndiProperties) throws NamingException
objectName - The name of the object to be looked up.jndiProperties - JNDI properties.NamingException - Error getting object.public static Object lookup(String objectName, Properties jndiProperties, ClassLoader[] classLoaders) throws NamingException
objectName - The name of the object to be looked up.jndiProperties - JNDI properties.classLoaders - The {@link ClassLoader ClassLoaders) to be used during the lookup.NamingException - Error getting object.public static Properties getDefaultProperties()
Copyright © 2020. All rights reserved.