1. Compile all the remote interfaces and the AccountData class.
2. Run the AccountManager interface (which refers to all the other
classes and interfaces) through the java2iiop compiler
3. Compile the generated stubs and servants, the servant implementations
for all the remote interfaces
4. Compile the Client and Server mainlines.
prompt> vbj Server & (start vbj Server on Windows) // make the server run in the backgroundNext, open some users' bank account with initial balances
prompt> vbj Client peter 12.213 paul 23.213 mary 5893.223or
prompt> vbj Client // uses a default nameThe example client first creates all the accounts specified with the appropriate balances by creating AccountData objects for each account and passing them to the AccountManager to create the accounts. It then confirms that the balance is correct on the created account. The client then queries the AccountManager for a list of all the accounts, and proceeds to credit $10 to each account. It then verifies if the new balance on the account is accurate.
Return to the top-level examples page.