VISIGENIC "BANK" EXAMPLES

INTRODUCTION

Revised: 12/12/97
These examples are the same as the "Bank" examples that Visigenic provides with its product, except that they have been converted to use the Internet Service Broker's web naming functionality.  There are three independent examples.  Each example implements the same basic CORBA client and server written in Java, but using a different technology:
 
Example
Client
Server
bank Static stubs Server inherits from skeleton
bank_using_tie Static stubs Server called through "tie" delegation
dynamic_bank Dynamic invocation Dynamic skeletons
 
This example contains batch files used to build the example which are specific to Windows NT, however it can be run with the existing class files on any platform.  In addition, the examples can easily be manually built on other platforms.  (Just execute the Java compiles manually instead of using the batch files)


TABLE OF CONTENTS

 

BANK EXAMPLE DESIGN

The Visigenic "Bank" example code actually contains three independent examples.  Each example implements the same set of objects but using a different set of technologies.  Each example is contained in its own sub-directory:

SCENARIO

The bank example simulates a banking system where a CORBA server object represents a bank account.  A CORBA client can invoke a method on a bank account object for a specific customer to retrieve and display that customer's account balance.  It uses two CORBA objects: an Account, an AccountManager, and a client that uses these components to get and display the account balance for the given customer.  The AccountManager is an example of a factory object.  A factory object is an object whose purpose is to create and return instances of other objects.  In this case, the client uses the AccountManager to obtain a reference to the specific Account object for a given customer.  If this is the first time the AccountManager has seen this customer, it creates a new Account object for that customer and returns that object's reference.  If an Account object had previously been created for that customer, the AccountManager returns a reference to the already-existing Account.

CORBA OBJECTS

Account

AccountManager

Command-Line Client

Client Applet


RUNNING THE BANK EXAMPLES

Each of the three bank example is kept in a separate subdirectory.  To run any of the examples, execute the following steps from within the directory for the example you wish to execute.

PRE-REQUISITES
The Bank examples come pre-compiled, so you don't need to build them in order to run them.  However, you must have the following:

STARTING THE SERVER
Before you can run a client which accesses a bank account object, you must first start the server which implements that object: RUNNING THE COMMAND-LINE CLIENT RUNNING THE  CLIENT APPLET (LOCATED IN "BANK" EXAMPLE)

BUILDING THE BANK EXAMPLES

PRE-REQUISITES
To build the bank examples, you will need to have the following: FILE AND DIRECTORY STRUCTURE
The station monitor example has the following directory structure: BUILDING
Each example contains three DOS batch files to help you build the sample code.  The root directory has batch files by the same names that can be used to build all examples at one time. Once you have your environment set-up according to the above pre-requisites, do the following to build the example code:

REFERENCE

FURTHER INFORMATION ON THE BANK EXAMPLE DOCUMENTATION