samples.j2ee.ejb.basic.statelessSession
Class Client

java.lang.Object
  |
  +--samples.j2ee.ejb.basic.statelessSession.Client

public class Client
extends java.lang.Object

This class illustrates using a stateless SessionBean:


Constructor Summary
Client()
           
 
Method Summary
static void main(java.lang.String[] args)
          Runs this example from the command line.
static javax.naming.Context newInitialContext()
          Creates 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.basic.statelessSession.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 ISL ISL address is defined in the UBBCONFIG file.
user - User name, default null
password - User password, default null
verbose - Enable/disable tracing, default true

newInitialContext

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