All Examples  All EJB Examples  This Package

Class examples.ejb.basic.statelessSession.Client




public class Client
extends java.lang.Object
This class illustrates calling a stateless Session Bean and performing the following exercises:

Constructor Index

 o Client(String, String, String)

Method Index

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

Constructor Detail

 o Client

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

Method Detail

 o main

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

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

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

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

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

All Examples  All EJB Examples  This Package