Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Online Training

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
 

Simple Banking System


by jGuru

[Exercise | API Docs | Short Course| Exercises]

Help is available for each task.



    Task 1

    Run the RMI Registry program.


    The RMI Registry program is provided as a separate executable in the rmiregistry program.

    Create a console and move to the directory that will contain your code from this exercise.

    From that location, run the registry with the following command:

    rmiregistry

    Task 2

    Copy all the .class files to a directory.


    Right-click on each file to save them.

    Source files are provided with the solution if you would like to generate them yourself.

    Task 3

    Run the RMI server that hosts the remote service objects.


    In this exercise, the server and the exported remote objects have been created for you.

    You simple need to start the host program, BankSystemServer.

    This is accomplished by creating a new console, moving to the directory which containts your code from this exercise and running the following program: java BankSystemServer

    Task 4

    Create and run a program that will use the exported RMI services. Find out the owner of account 4461 and how much money is in it.


    A skeleton file for the BankUser client program is provided.

    Using the remote service interface definitions as a guide to complete the code for BankUser.

    Then compile and run this program to see your RMI system in action!

Copyright 1996-2000 jGuru.com. All Rights Reserved.


[ This page was updated: 11-Feb-2000 ]
Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
FAQ | Feedback | Map | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-2000 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.