    All Examples  All EJB Examples  This Package

## Class examples.ejb.basic.statefulSession.Client

    java.lang.Object
        |
        +----examples.ejb.basic.statefulSession.Client

public class Client
extends java.lang.Object

This class illustrates calling a stateful SessionBean and performing the following exercises:

- Create a Trader
- Buy some shares using the Trader
- Sell some shares using the Trader
- Remove the Trader

##

Client(String, String, String)

##

example()
  Runs the example.
main(String[])
  Runs this example from the command line.

##

Client

    public Client(java.lang.String url,
                  java.lang.String user,
                  java.lang.String password) throws javax.naming.NamingException

##

main

    public static void main(java.lang.String args[])

Runs this example from the command line. Example:

`java examples.ejb.basic.statefulSession.Client "t3://localhost:7001" scott tiger`

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

example

    public void example() throws javax.ejb.CreateException, ProcessingErrorException, java.rmi.RemoteException, javax.ejb.RemoveException

Runs the example.

    All Examples  All EJB Examples  This Package