Bank

The Bank example has a simple Bank interface to open a bank account and to query the balance in a bank account. It illustrates basic communication using the ORB.


From this example, you will learn how to:

Directory Contents

Building this example

Typing make (or vbmake on Windows) in the bank subdirectory will cause the Bank.idl to be run through the idl2java compiler. It will also build the following classes for the examples described above:

Compilation Warnings

You will see the following compilation warning when you type make (or vbmake on Windows) in the bank subdirectory or when you explicitly compile ClientApplet.java using: This warning occurs because the example uses a Java API that has been deprecated since JDK1.1. The calls to the deprecated Java API have not been changed for the sake of JDK1.0.2 users.

Running this example

To run the examples, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the bank server using the command: Next, open a user's bank account and query the balance in the account using the command or or
You could use a Java-enabled browser and load ClientApplet.html



Return to the top-level examples page.