public class Main
extends java.lang.Object
implements java.lang.Runnable
The JNDI configuration is provided in the jndi.properties file.
NamingContext| Modifier and Type | Field and Description |
|---|---|
(package private) Main |
remoteServer |
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Start the test
|
void |
printName(java.lang.String name) |
void |
run()
Run the tests
|
private void |
runRemoteServer() |
void |
showTree(javax.naming.Context ctx)
Show a JNDI context tree on system out.
|
void |
showTree(javax.naming.Context ctx,
int maxDepth) |
private void |
showTree(java.lang.String indent,
javax.naming.Context ctx,
int depth,
int maxDepth)
Print the contents of a JNDI context recursively
|
Main remoteServer
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exceptionpublic void printName(java.lang.String name)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void showTree(javax.naming.Context ctx)
throws javax.naming.NamingException
ctx - javax.naming.NamingExceptionpublic void showTree(javax.naming.Context ctx,
int maxDepth)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic void run()
run in interface java.lang.Runnableprivate void runRemoteServer()
throws java.lang.Exception
java.lang.Exceptionprivate void showTree(java.lang.String indent,
javax.naming.Context ctx,
int depth,
int maxDepth)
throws javax.naming.NamingException
indent - indentation stringctx - the JNDI contextjavax.naming.NamingException - thrown if any problems occur