public class JNDIUtil extends Object
| Constructor and Description |
|---|
JNDIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Context |
createContext(Context c,
String path)
Create a context path recursively.
|
static void |
rebind(Context c,
String jndiName,
Object o)
Context.rebind() requires that all intermediate contexts and the target context (that named by
all but terminal atomic component of the name) must already exist, otherwise
NameNotFoundException is thrown.
|
static void |
tearDownRecursively(Context c) |
public static Context createContext(Context c, String path) throws NamingException
NamingExceptionpublic static void tearDownRecursively(Context c) throws Exception
Exceptionpublic static void rebind(Context c, String jndiName, Object o) throws NamingException
NamingExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.