站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 naming API Documentation 英文版文档

Main (JBoss Naming API) - JBoss 3.2.7 naming API Documentation 英文版文档


org.jnp.client
Class Main

java.lang.Object
  extended byorg.jnp.client.Main
All Implemented Interfaces:
Runnable

public class Main
extends Object
implements Runnable

This is a test client of the NamingServer. It calls the server in various ways to test the functionality.

The JNDI configuration is provided in the jndi.properties file.

Version:
$Revision: 1.7 $
Author:
oberg, Scott_Stark@displayscape.com
See Also:
NamingContext

Constructor Summary
Main()
           
 
Method Summary
static void main(String[] args)
          Start the test
 void printName(String name)
           
 void run()
          Run the tests
 void showTree(Context ctx)
          Show a JNDI context tree on system out.
 void showTree(Context ctx, int maxDepth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Start the test

Parameters:
args -
Throws:
Exception

printName

public void printName(String name)
               throws NamingException
Throws:
NamingException

showTree

public void showTree(Context ctx)
              throws NamingException
Show a JNDI context tree on system out.

Parameters:
ctx -
Throws:
NamingException

showTree

public void showTree(Context ctx,
                     int maxDepth)
              throws NamingException
Throws:
NamingException

run

public void run()
Run the tests

Specified by:
run in interface Runnable


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.