All Examples  All EJB Examples  This Package

Class examples.ejb.extensions.isModifiedBeanManaged.Client

java.lang.Object
   |
   +----examples.ejb.extensions.isModifiedBeanManaged.Client

public class Client
extends Object
This class demonstrates calling two different entity EJBeans, and performing the same exercise twice:

Part A:

Part B:

Author:

Copyright (c) 1999 by BEA WebXpress, Inc. All Rights Reserved.

Constructor Index

 o Client()

Method Index

 o getInitialContext()
Gets an initial context for the current user, password and url.
 o main(String[])
Runs this example from the command line.

Constructors

 o Client
 public Client()

Methods

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

java examples.ejb.extensions.isModifiedBeanManaged.Client "t3://localhost:7001" scott tiger 10020

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
accountID - String Account ID to test, default "10020"
 o getInitialContext
 public static Context getInitialContext() throws Exception
Gets an initial context for the current user, password and url.

Returns:
Context
Throws: Exception
if there is an error in getting the Context

All Examples  All EJB Examples  This Package