All Examples  All EJB Examples  This Group

Class examples.ejb.utils.ListAll


java.lang.Object

    |

    +----examples.ejb.utils.ListAll


public class ListAll
extends java.lang.Object
This class demonstrates finding all the Enterprise JavaBeans in the JNDI tree


Constructor Index

 o ListAll()
 

Method Index

 o getInitialContext()
Gets an initial context.
 o main(String[])
Runs this example from the command line.

Constructor Detail

 o ListAll

public ListAll()

Method Detail

 o main

public static void main(java.lang.String args[])
          Runs this example from the command line. Example:

java examples.ejb.utils.ListAll

The parameters are optional, but if any are supplied, they are interpreted in this order:

Parameters:
url - URL such as "t3://localhost:7001" of Server
user - User name, default null
password - User password, default null
 o getInitialContext

public static examples.ejb.utils.Context getInitialContext() throws java.lang.Exception
          Gets an initial context.
Returns:
Context
Throws:
java.lang.Exception - if there is an error in getting a Context


All Examples  All EJB Examples  This Group