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
NamingException
public static void tearDownRecursively(Context c) throws Exception
Exception
public static void rebind(Context c, String jndiName, Object o) throws NamingException
NamingException
Copyright © 2018 JBoss by Red Hat. All rights reserved.