samples.j2ee.ejb.subclass.parent
Class Client

java.lang.Object
  |
  +--samples.j2ee.ejb.subclass.parent.Client

public class Client
extends java.lang.Object

This class is used with the "Child" EJBean to illustrate using an EJBean that subclasses from a another bean.


Constructor Summary
Client()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs this example from the command line.
static javax.naming.Context newInitialContext()
          Gets an initial context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client()
Method Detail

main

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

java samples.j2ee.ejb.subclass.parent.Client "corbaloc://localhost:7001" scott tiger

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

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

newInitialContext

public static javax.naming.Context newInitialContext()
                                              throws java.lang.Exception
Gets an initial context.
Returns:
Context
Throws:
java.lang.Exception - if there is an error in getting a Context