    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

##

ListAll()

##

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

##

ListAll

    public ListAll()

##

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

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