public class JndiHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.objectweb.util.monolog.api.Logger |
logmon |
| Constructor and Description |
|---|
JndiHelper() |
| Modifier and Type | Method and Description |
|---|---|
private Context |
getInitialContext() |
private boolean |
isSet(String value) |
Object |
lookup(String jndiName)
Lookup the jndi name
|
void |
rebind(String jndiName,
Object obj)
rebind the object.
|
void |
unbind(String jndiName)
Unbind the jndi name
|
private final boolean isSet(String value)
private Context getInitialContext() throws IOException, NamingException
IOExceptionNamingExceptionpublic void rebind(String jndiName, Object obj) throws NamingException
jndiName - the jndi nameobj - object to rebindNamingExceptionpublic void unbind(String jndiName)
jndiName - the jndi namepublic Object lookup(String jndiName) throws NamingException
jndiName - the jndi nameNamingExceptionCopyright © 2023 ScalAgent D.T.. All rights reserved.